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

Unified Diff: chromeos/network/managed_state.h

Issue 14846004: Migrate ProxyConfigServiceImpl to NetworkStateHandler and NetworkProfileHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 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: chromeos/network/managed_state.h
diff --git a/chromeos/network/managed_state.h b/chromeos/network/managed_state.h
index 5dcaff2818a76cf50b38c2240e1dfa72cd3c8fe4..fb33993aa329714ca49f3a30b51e684b0fa32d81 100644
--- a/chromeos/network/managed_state.h
+++ b/chromeos/network/managed_state.h
@@ -40,9 +40,12 @@ class ManagedState {
NetworkState* AsNetworkState();
DeviceState* AsDeviceState();
- // Called by NetworkStateHandler when a property changes. Returns false if
- // the property was not recognized, was not parsed successfully, or is
- // unchanged (complex properties may be assumed to have changed).
+ // Called by NetworkStateHandler when a property was received. The return
stevenjb 2013/05/15 17:44:14 I think that the original 'Returns false if' claus
pneubeck (no reviews) 2013/05/15 20:24:48 Please double check my change to the return statem
+ // value only guarantees: If false then the state wasn't modified (e.g. if the
+ // property wasn't parsed successfully).
+ // I.e. if it returns true, the state might be modified or not.
+ // For reducing the number of notifications, false positives should be
+ // avoided.
virtual bool PropertyChanged(const std::string& key,
const base::Value& value) = 0;

Powered by Google App Engine
This is Rietveld 408576698