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

Unified Diff: chromeos/dbus/experimental_bluetooth_profile_manager_client.cc

Issue 13927010: Bluetooth: implement BlueZ 5 backend for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review comment Created 7 years, 8 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: chromeos/dbus/experimental_bluetooth_profile_manager_client.cc
diff --git a/chromeos/dbus/experimental_bluetooth_profile_manager_client.cc b/chromeos/dbus/experimental_bluetooth_profile_manager_client.cc
index c39882747b89515bdbce676146481a8ccc957155..dab9d9389f91f5f3cd96221c8e2b84c9386c3e24 100644
--- a/chromeos/dbus/experimental_bluetooth_profile_manager_client.cc
+++ b/chromeos/dbus/experimental_bluetooth_profile_manager_client.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -229,33 +230,6 @@ class ExperimentalBluetoothProfileManagerClientImpl
DISALLOW_COPY_AND_ASSIGN(ExperimentalBluetoothProfileManagerClientImpl);
};
-// The ExperimentalBluetoothProfileManagerClient implementation used on Linux
-// desktop, which does nothing.
-class ExperimentalBluetoothProfileManagerClientStubImpl
- : public ExperimentalBluetoothProfileManagerClient {
- public:
- ExperimentalBluetoothProfileManagerClientStubImpl() {
- }
-
- // ExperimentalBluetoothProfileManagerClient override.
- virtual void RegisterProfile(const dbus::ObjectPath& profile_path,
- const std::string& uuid,
- const Options& options,
- const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
- VLOG(1) << "RegisterProfile: " << profile_path.value() << ": " << uuid;
- error_callback.Run(kNoResponseError, "");
- }
-
- // ExperimentalBluetoothProfileManagerClient override.
- virtual void UnregisterProfile(const dbus::ObjectPath& profile_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
- VLOG(1) << "UnregisterAgent: " << profile_path.value();
- error_callback.Run(kNoResponseError, "");
- }
-};
-
ExperimentalBluetoothProfileManagerClient::
ExperimentalBluetoothProfileManagerClient() {
}
@@ -271,7 +245,7 @@ ExperimentalBluetoothProfileManagerClient*
if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
return new ExperimentalBluetoothProfileManagerClientImpl(bus);
DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new ExperimentalBluetoothProfileManagerClientStubImpl();
+ return new FakeBluetoothProfileManagerClient();
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698