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

Unified Diff: chromeos/dbus/fake_bluetooth_adapter_client.cc

Issue 14443003: D-Bus: notify properties changed from fakes (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
« no previous file with comments | « chromeos/dbus/bluetooth_adapter_client.cc ('k') | chromeos/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_bluetooth_adapter_client.cc
diff --git a/chromeos/dbus/fake_bluetooth_adapter_client.cc b/chromeos/dbus/fake_bluetooth_adapter_client.cc
index 4d248c206f644899df318ceafcb5992d72470e24..9209f9d90f0c1881481a6ab7b00955d47d23b36d 100644
--- a/chromeos/dbus/fake_bluetooth_adapter_client.cc
+++ b/chromeos/dbus/fake_bluetooth_adapter_client.cc
@@ -65,7 +65,6 @@ void FakeBluetoothAdapterClient::Properties::Set(
if (property->name() == powered.name() || property->name() == alias.name()) {
callback.Run(true);
property->ReplaceValueWithSetValue();
- NotifyPropertyChanged(property->name());
} else {
callback.Run(false);
}
@@ -141,7 +140,6 @@ void FakeBluetoothAdapterClient::StartDiscovery(
if (discovering_count_ == 1) {
properties_->discovering.ReplaceValue(true);
- properties_->NotifyPropertyChanged(properties_->discovering.name());
FakeBluetoothDeviceClient* device_client =
static_cast<FakeBluetoothDeviceClient*>(
@@ -177,7 +175,6 @@ void FakeBluetoothAdapterClient::StopDiscovery(
device_client->EndDiscoverySimulation(dbus::ObjectPath(kAdapterPath));
properties_->discovering.ReplaceValue(false);
- properties_->NotifyPropertyChanged(properties_->discovering.name());
}
}
@@ -246,7 +243,6 @@ void FakeBluetoothAdapterClient::OnPropertyChanged(
if (discovering_count_) {
discovering_count_ = 0;
properties_->discovering.ReplaceValue(false);
- properties_->NotifyPropertyChanged(properties_->discovering.name());
}
}
« no previous file with comments | « chromeos/dbus/bluetooth_adapter_client.cc ('k') | chromeos/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698