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

Unified Diff: device/bluetooth/bluetooth_adapter_experimental_chromeos.cc

Issue 14199010: Bluetooth: call DeviceChanged observer method on IsConnecting() change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: device/bluetooth/bluetooth_adapter_experimental_chromeos.cc
diff --git a/device/bluetooth/bluetooth_adapter_experimental_chromeos.cc b/device/bluetooth/bluetooth_adapter_experimental_chromeos.cc
index 2af93768b637c191cb961d72bf31981d8c4a58a5..5143dd16ef35cfd4fd779bc93cd9c6af0b0bd6e2 100644
--- a/device/bluetooth/bluetooth_adapter_experimental_chromeos.cc
+++ b/device/bluetooth/bluetooth_adapter_experimental_chromeos.cc
@@ -244,11 +244,8 @@ void BluetoothAdapterExperimentalChromeOS::DevicePropertyChanged(
property_name == properties->alias.name() ||
property_name == properties->paired.name() ||
property_name == properties->connected.name() ||
- property_name == properties->uuids.name()) {
- FOR_EACH_OBSERVER(
- BluetoothAdapter::Observer, observers_,
- DeviceChanged(this, device_chromeos));
- }
+ property_name == properties->uuids.name())
+ NotifyDeviceChanged(device_chromeos);
}
BluetoothDeviceExperimentalChromeOS*
@@ -345,6 +342,14 @@ void BluetoothAdapterExperimentalChromeOS::PresentChanged(bool present) {
AdapterPresentChanged(this, present));
}
+void BluetoothAdapterExperimentalChromeOS::NotifyDeviceChanged(
+ BluetoothDeviceExperimentalChromeOS* device) {
+ DCHECK(device->adapter_ == this);
+
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ DeviceChanged(this, device));
+}
+
void BluetoothAdapterExperimentalChromeOS::OnSetPowered(
const base::Closure& callback,
const ErrorCallback& error_callback,
« no previous file with comments | « device/bluetooth/bluetooth_adapter_experimental_chromeos.h ('k') | device/bluetooth/bluetooth_device_experimental_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698