Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.cc

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.cc
diff --git a/chromeos/dbus/fake_bluetooth_le_advertisement_service_provider.cc b/device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.cc
similarity index 80%
rename from chromeos/dbus/fake_bluetooth_le_advertisement_service_provider.cc
rename to device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.cc
index ce46e3da0cb4600c333e0e27b746dbd4de9a2bce..043df05c1653facc845d4650559a49e492bd779a 100644
--- a/chromeos/dbus/fake_bluetooth_le_advertisement_service_provider.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/dbus/fake_bluetooth_le_advertisement_service_provider.h"
-#include "chromeos/dbus/fake_bluetooth_le_advertising_manager_client.h"
+#include "device/bluetooth/dbus/bluez_dbus_manager.h"
+#include "device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider.h"
+#include "device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h"
-namespace chromeos {
+namespace bluez {
FakeBluetoothLEAdvertisementServiceProvider::
FakeBluetoothLEAdvertisementServiceProvider(
@@ -19,7 +19,7 @@ FakeBluetoothLEAdvertisementServiceProvider::
FakeBluetoothLEAdvertisingManagerClient*
fake_bluetooth_profile_manager_client =
static_cast<FakeBluetoothLEAdvertisingManagerClient*>(
- DBusThreadManager::Get()
+ bluez::BluezDBusManager::Get()
->GetBluetoothLEAdvertisingManagerClient());
fake_bluetooth_profile_manager_client->RegisterAdvertisementServiceProvider(
this);
@@ -32,7 +32,7 @@ FakeBluetoothLEAdvertisementServiceProvider::
FakeBluetoothLEAdvertisingManagerClient*
fake_bluetooth_profile_manager_client =
static_cast<FakeBluetoothLEAdvertisingManagerClient*>(
- DBusThreadManager::Get()
+ bluez::BluezDBusManager::Get()
->GetBluetoothLEAdvertisingManagerClient());
fake_bluetooth_profile_manager_client->UnregisterAdvertisementServiceProvider(
this);
@@ -43,4 +43,4 @@ void FakeBluetoothLEAdvertisementServiceProvider::Release() {
delegate_->Released();
}
-} // namespace chromeos
+} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698