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

Unified Diff: chromeos/dbus/experimental_bluetooth_agent_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_agent_manager_client.cc
diff --git a/chromeos/dbus/experimental_bluetooth_agent_manager_client.cc b/chromeos/dbus/experimental_bluetooth_agent_manager_client.cc
index d20e874aabf08aa7a61358968b81226c394104e9..9055b417fc7fe8f7a4741d61de2a03725bd4ecf9 100644
--- a/chromeos/dbus/experimental_bluetooth_agent_manager_client.cc
+++ b/chromeos/dbus/experimental_bluetooth_agent_manager_client.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -137,41 +138,6 @@ class ExperimentalBluetoothAgentManagerClientImpl
DISALLOW_COPY_AND_ASSIGN(ExperimentalBluetoothAgentManagerClientImpl);
};
-// The ExperimentalBluetoothAgentManagerClient implementation used on Linux
-// desktop, which does nothing.
-class ExperimentalBluetoothAgentManagerClientStubImpl
- : public ExperimentalBluetoothAgentManagerClient {
- public:
- ExperimentalBluetoothAgentManagerClientStubImpl() {
- }
-
- // ExperimentalBluetoothAgentManagerClient override.
- virtual void RegisterAgent(const dbus::ObjectPath& agent_path,
- const std::string& capability,
- const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
- VLOG(1) << "RegisterAgent: " << agent_path.value();
- error_callback.Run(kNoResponseError, "");
- }
-
- // ExperimentalBluetoothAgentManagerClient override.
- virtual void UnregisterAgent(const dbus::ObjectPath& agent_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
- VLOG(1) << "UnregisterAgent: " << agent_path.value();
- error_callback.Run(kNoResponseError, "");
- }
-
- // ExperimentalBluetoothAgentManagerClient override.
- virtual void RequestDefaultAgent(const dbus::ObjectPath& agent_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback)
- OVERRIDE {
- VLOG(1) << "RequestDefaultAgent: " << agent_path.value();
- error_callback.Run(kNoResponseError, "");
- }
-};
-
ExperimentalBluetoothAgentManagerClient::
ExperimentalBluetoothAgentManagerClient() {
}
@@ -187,7 +153,7 @@ ExperimentalBluetoothAgentManagerClient*
if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
return new ExperimentalBluetoothAgentManagerClientImpl(bus);
DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new ExperimentalBluetoothAgentManagerClientStubImpl();
+ return new FakeBluetoothAgentManagerClient();
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/experimental_bluetooth_adapter_client.cc ('k') | chromeos/dbus/experimental_bluetooth_agent_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698