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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_gatt_service_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_gatt_service_service_provider.cc
diff --git a/chromeos/dbus/fake_bluetooth_gatt_service_service_provider.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.cc
similarity index 69%
rename from chromeos/dbus/fake_bluetooth_gatt_service_service_provider.cc
rename to device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.cc
index d06abd3b0adcdeb99ccd2656fb91727cc9b02763..8d724058673d6e29fe4aa26bb12ed62f1082c428 100644
--- a/chromeos/dbus/fake_bluetooth_gatt_service_service_provider.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.cc
@@ -2,27 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/dbus/fake_bluetooth_gatt_service_service_provider.h"
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h"
#include "base/logging.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/dbus/fake_bluetooth_gatt_manager_client.h"
+#include "device/bluetooth/dbus/bluez_dbus_manager.h"
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.h"
-namespace chromeos {
+namespace bluez {
FakeBluetoothGattServiceServiceProvider::
FakeBluetoothGattServiceServiceProvider(
const dbus::ObjectPath& object_path,
const std::string& uuid,
const std::vector<dbus::ObjectPath>& includes)
- : object_path_(object_path),
- uuid_(uuid),
- includes_(includes) {
+ : object_path_(object_path), uuid_(uuid), includes_(includes) {
VLOG(1) << "Creating Bluetooth GATT service: " << object_path_.value();
FakeBluetoothGattManagerClient* fake_bluetooth_gatt_manager_client =
static_cast<FakeBluetoothGattManagerClient*>(
- DBusThreadManager::Get()->GetBluetoothGattManagerClient());
+ bluez::BluezDBusManager::Get()->GetBluetoothGattManagerClient());
fake_bluetooth_gatt_manager_client->RegisterServiceServiceProvider(this);
}
@@ -32,8 +30,8 @@ FakeBluetoothGattServiceServiceProvider::
FakeBluetoothGattManagerClient* fake_bluetooth_gatt_manager_client =
static_cast<FakeBluetoothGattManagerClient*>(
- DBusThreadManager::Get()->GetBluetoothGattManagerClient());
+ bluez::BluezDBusManager::Get()->GetBluetoothGattManagerClient());
fake_bluetooth_gatt_manager_client->UnregisterServiceServiceProvider(this);
}
-} // namespace chromeos
+} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698