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

Unified Diff: base/prefs/pref_service.h

Issue 1096833003: Convert PrefSyncStatus into PrefRegistrationFlags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: base/prefs/pref_service.h
diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h
index d9b03c9388ec9c7540ade8c1a5ede1867c1eb8f1..29de4d2b5b4ca82dca93eff3eef7fc85945bf740 100644
--- a/base/prefs/pref_service.h
+++ b/base/prefs/pref_service.h
@@ -229,6 +229,10 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
// registered preference. In that case, will never return NULL.
const base::Value* GetDefaultPrefValue(const std::string& path) const;
+ // Return the registration flags for the given pref. Returns a bitmask of
+ // |PrefRegistrationFlags|.
+ uint32 GetRegistrationFlags(const std::string& path) const;
+
// Returns true if a value has been set for the specified path.
// NOTE: this is NOT the same as FindPreference. In particular
// FindPreference returns whether RegisterXXX has been invoked, where as

Powered by Google App Engine
This is Rietveld 408576698