diff options
author | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 00:17:23 +0000 |
---|---|---|
committer | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 00:17:23 +0000 |
commit | e7c240bee5a31443c90bf29e9fd0510888042505 (patch) | |
tree | f0b5f103a6a684da3d679b1b39c0367dd87c69aa /chrome | |
parent | 7983ca329a867788d4e694af3b93275dadb569f4 (diff) | |
download | chromium_src-e7c240bee5a31443c90bf29e9fd0510888042505.zip chromium_src-e7c240bee5a31443c90bf29e9fd0510888042505.tar.gz chromium_src-e7c240bee5a31443c90bf29e9fd0510888042505.tar.bz2 |
chrome: bluetooth: fix type of first argument
First argument to these signals is an ObjectPath, not a String;
fix a log message while we were in there.
BUG=none
TEST=verified error gone from the logs
Change-Id: I81dc1c9766099efb315141b7da690cc8583ac871
Review URL: http://codereview.chromium.org/9357001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc b/chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc index de825748..54b772d 100644 --- a/chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc +++ b/chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc @@ -325,7 +325,7 @@ class BluetoothAdapterClientImpl: public BluetoothAdapterClient, DCHECK(signal); dbus::MessageReader reader(signal); std::string device_path; - if (!reader.PopString(&device_path)) { + if (!reader.PopObjectPath(&device_path)) { LOG(ERROR) << object_path << ": DeviceCreated signal has incorrect parameters: " << signal->ToString(); @@ -352,13 +352,13 @@ class BluetoothAdapterClientImpl: public BluetoothAdapterClient, DCHECK(signal); dbus::MessageReader reader(signal); std::string device_path; - if (!reader.PopString(&device_path)) { + if (!reader.PopObjectPath(&device_path)) { LOG(ERROR) << object_path << ": DeviceRemoved signal has incorrect parameters: " << signal->ToString(); return; } - VLOG(1) << object_path << ": Device created: " << device_path; + VLOG(1) << object_path << ": Device removed: " << device_path; FOR_EACH_OBSERVER(BluetoothAdapterClient::Observer, observers_, DeviceRemoved(object_path, device_path)); |