Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f08305af authored by Qijiang Fan's avatar Qijiang Fan
Browse files

Update for Chrome OS libchrome uprev.

* base/bind_helpers.h
 All utilities of base/bind_helpers.h will be moved to
 base/callback_helpers.h. Add a wrapper header for system/bt.

* using base::MakeUnboundRunType
 base::MakeUnboundRunType is now in base::internal namespace. Use
 internal namespace as temporary workaround.

This change should be no-op to Android.

Chrome OS Bug: crbug/2742042

Bug: 189293646
Tag: #floss
Test: CrOS zork-floss-cq ci.chromium.org/ui/b/8846190456959373168

Change-Id: Ia37528fcc56300a45b21e74937e6a21eb8026f84
parent 5ddb93e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
 */

#include <base/bind.h>
#include <base/bind_helpers.h>
#include <base/logging.h>
#include <base/strings/string_number_conversions.h>
#include <hardware/bt_vc.h>
@@ -24,6 +23,7 @@
#include <string>
#include <vector>

#include "bind_helpers.h"
#include "bta_gatt_api.h"
#include "bta_gatt_queue.h"
#include "bta_vc_api.h"
+1 −1
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@
 */

#include <base/bind.h>
#include <base/bind_helpers.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include "bind_helpers.h"
#include "bta_gatt_api_mock.h"
#include "bta_gatt_queue_mock.h"
#include "bta_vc_api.h"
+1 −1
Original line number Diff line number Diff line
@@ -15,11 +15,11 @@
 */

#include <base/bind.h>
#include <base/bind_helpers.h>
#include <base/logging.h>
#include <gtest/gtest.h>
#include <future>

#include "bind_helpers.h"
#include "message_loop_thread.h"
#include "once_timer.h"

+1 −1
Original line number Diff line number Diff line
@@ -15,11 +15,11 @@
 */

#include <base/bind.h>
#include <base/bind_helpers.h>
#include <base/logging.h>
#include <gtest/gtest.h>
#include <future>

#include "bind_helpers.h"
#include "message_loop_thread.h"
#include "repeating_timer.h"

+5 −0
Original line number Diff line number Diff line
@@ -24,7 +24,12 @@ namespace common {
using base::Bind;
using base::BindOnce;
using base::IgnoreResult;
#if defined(BASE_VER) && BASE_VER >= 860220
// TODO(b/189293646): find a way to avoid base::internal.
using base::internal::MakeUnboundRunType;
#else
using base::MakeUnboundRunType;
#endif
using base::Owned;
using base::Passed;
using base::RetainedRef;
Loading