From e7c240bee5a31443c90bf29e9fd0510888042505 Mon Sep 17 00:00:00 2001 From: "keybuk@chromium.org" Date: Wed, 8 Feb 2012 00:17:23 +0000 Subject: 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 --- chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome') 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)); -- cgit v1.1