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

Unified Diff: base/prefs/pref_value_store.h

Issue 421653006: Update "Predict network actions" UI setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move and improve migration routine. Created 6 years, 4 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_value_store.h
diff --git a/base/prefs/pref_value_store.h b/base/prefs/pref_value_store.h
index 1c85ca7b45aa192436572ac2e30e4aec564d34ff..7fed1ec8b643de95ee887cc2dc949685b72656f1 100644
--- a/base/prefs/pref_value_store.h
+++ b/base/prefs/pref_value_store.h
@@ -82,6 +82,15 @@ class BASE_PREFS_EXPORT PrefValueStore {
base::Value::Type type,
const base::Value** out_value) const;
+ // Gets the value set by the user for the given preference name that has the
+ // specified value type. A value stored in the user PrefStore that has
+ // the matching |name| but a non-matching |type| is silently ignored. Returns
+ // true if a valid value was found. Most callers should use
+ // Preference::GetUserValue() instead of calling this method directly.
+ bool GetUserValue(const std::string& name,
+ base::Value::Type type,
+ const base::Value** out_value) const;
+
// Gets the recommended value for the given preference name that has the
// specified value type. A value stored in the recommended PrefStore that has
// the matching |name| but a non-matching |type| is silently ignored. Returns

Powered by Google App Engine
This is Rietveld 408576698