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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_profile_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
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc
diff --git a/chromeos/dbus/fake_bluetooth_profile_service_provider.cc b/device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc
similarity index 81%
rename from chromeos/dbus/fake_bluetooth_profile_service_provider.cc
rename to device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc
index a1f44eb9cc453a68f6bfeee93cefdf926cd25335..10895018af53c2af6ad129375b5de7542c28e26d 100644
--- a/chromeos/dbus/fake_bluetooth_profile_service_provider.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc
@@ -2,23 +2,22 @@
// 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_profile_service_provider.h"
+#include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
+#include "device/bluetooth/dbus/bluez_dbus_manager.h"
+#include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h"
-namespace chromeos {
+namespace bluez {
FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider(
const dbus::ObjectPath& object_path,
Delegate* delegate)
- : object_path_(object_path),
- delegate_(delegate) {
+ : object_path_(object_path), delegate_(delegate) {
VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value();
FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client =
static_cast<FakeBluetoothProfileManagerClient*>(
- DBusThreadManager::Get()->GetBluetoothProfileManagerClient());
+ bluez::BluezDBusManager::Get()->GetBluetoothProfileManagerClient());
fake_bluetooth_profile_manager_client->RegisterProfileServiceProvider(this);
}
@@ -27,7 +26,7 @@ FakeBluetoothProfileServiceProvider::~FakeBluetoothProfileServiceProvider() {
FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client =
static_cast<FakeBluetoothProfileManagerClient*>(
- DBusThreadManager::Get()->GetBluetoothProfileManagerClient());
+ bluez::BluezDBusManager::Get()->GetBluetoothProfileManagerClient());
fake_bluetooth_profile_manager_client->UnregisterProfileServiceProvider(this);
}
@@ -59,4 +58,4 @@ void FakeBluetoothProfileServiceProvider::Cancel() {
delegate_->Cancel();
}
-} // namespace chromeos
+} // namespace bluez
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698