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

Unified Diff: dbus/property.h

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
Index: dbus/property.h
diff --git a/dbus/property.h b/dbus/property.h
index f2feb05dfbe9b0933914b191394f647b7c3f6285..9f5af480e6905ebe5c1424ddd179c8e7ae54a2f0 100644
--- a/dbus/property.h
+++ b/dbus/property.h
@@ -386,11 +386,17 @@ class CHROME_DBUS_EXPORT Property : public PropertyBase {
// Method used by test and stub implementations of dbus::PropertySet::Set
// to replace the property value with the set value without using a
// dbus::MessageReader.
- virtual void ReplaceValueWithSetValue() { value_ = set_value_; }
+ virtual void ReplaceValueWithSetValue() {
+ value_ = set_value_;
+ property_set()->NotifyPropertyChanged(name());
+ }
// Method used by test and stub implementations to directly set the
// value of a property.
- void ReplaceValue(const T& value) { value_ = value; }
+ void ReplaceValue(const T& value) {
+ value_ = value;
+ property_set()->NotifyPropertyChanged(name());
+ }
private:
// Current cached value of the property.
« no previous file with comments | « chromeos/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/bluetooth_experimental_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698