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 |