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. |