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

Unified Diff: chrome/browser/chromeos/dbus/bluetooth_device_client.cc

Issue 9363045: Revert 121920 - dbus: add ObjectPath type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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: chrome/browser/chromeos/dbus/bluetooth_device_client.cc
===================================================================
--- chrome/browser/chromeos/dbus/bluetooth_device_client.cc (revision 121922)
+++ chrome/browser/chromeos/dbus/bluetooth_device_client.cc (working copy)
@@ -13,7 +13,6 @@
#include "chrome/browser/chromeos/system/runtime_environment.h"
#include "dbus/bus.h"
#include "dbus/message.h"
-#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -54,24 +53,23 @@
private:
// BluetoothAdapterClient::Observer override.
- virtual void DeviceCreated(const dbus::ObjectPath& adapter_path,
- const dbus::ObjectPath& object_path) OVERRIDE {
- VLOG(1) << "DeviceCreated: " << object_path.value();
+ virtual void DeviceCreated(const std::string& adapter_path,
+ const std::string& object_path) OVERRIDE {
+ VLOG(1) << "DeviceCreated: " << object_path;
}
// BluetoothAdapterClient::Observer override.
- virtual void DeviceRemoved(const dbus::ObjectPath& adapter_path,
- const dbus::ObjectPath& object_path) OVERRIDE {
- VLOG(1) << "DeviceRemoved: " << object_path.value();
+ virtual void DeviceRemoved(const std::string& adapter_path,
+ const std::string& object_path) OVERRIDE {
+ VLOG(1) << "DeviceRemoved: " << object_path;
RemoveObjectProxyForPath(object_path);
}
// Ensures that we have a dbus object proxy for a device with dbus
// object path |object_path|, and if not, creates it stores it in
// our |proxy_map_| map.
- dbus::ObjectProxy* GetObjectProxyForPath(
- const dbus::ObjectPath& object_path) {
- VLOG(1) << "GetObjectProxyForPath: " << object_path.value();
+ dbus::ObjectProxy* GetObjectProxyForPath(const std::string& object_path) {
+ VLOG(1) << "GetObjectProxyForPath: " << object_path;
ProxyMap::iterator it = proxy_map_.find(object_path);
if (it != proxy_map_.end())
@@ -88,8 +86,8 @@
// Removes the dbus object proxy for the device with dbus object path
// |object_path| from our |proxy_map_| map.
- void RemoveObjectProxyForPath(const dbus::ObjectPath& object_path) {
- VLOG(1) << "RemoveObjectProxyForPath: " << object_path.value();
+ void RemoveObjectProxyForPath(const std::string& object_path) {
+ VLOG(1) << "RemoveObjectProxyForPath: " << object_path;
proxy_map_.erase(object_path);
}
@@ -100,7 +98,7 @@
dbus::Bus* bus_;
// We maintain a collection of dbus object proxies, one for each device.
- typedef std::map<const dbus::ObjectPath, dbus::ObjectProxy*> ProxyMap;
+ typedef std::map<const std::string, dbus::ObjectProxy*> ProxyMap;
ProxyMap proxy_map_;
// List of observers interested in event notifications from us.
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc ('k') | chrome/browser/chromeos/dbus/bluetooth_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698