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

Unified Diff: components/prefs/pref_value_map.h

Issue 2692203007: Add PrefStore::GetValues (Closed)
Patch Set: Created 3 years, 10 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: components/prefs/pref_value_map.h
diff --git a/components/prefs/pref_value_map.h b/components/prefs/pref_value_map.h
index b0ffbd15fdda3ef1900cf507aec5bd4768d10a24..bad10cf978487bcab777ec445066d9ad20049052 100644
--- a/components/prefs/pref_value_map.h
+++ b/components/prefs/pref_value_map.h
@@ -14,6 +14,7 @@
#include "components/prefs/base_prefs_export.h"
namespace base {
+class DictionaryValue;
class Value;
}
@@ -83,6 +84,9 @@ class COMPONENTS_PREFS_EXPORT PrefValueMap {
void GetDifferingKeys(const PrefValueMap* other,
std::vector<std::string>* differing_keys) const;
+ // Copies the map into a dictionary value.
+ std::unique_ptr<base::DictionaryValue> AsDictionaryValue() const;
+
private:
Map prefs_;

Powered by Google App Engine
This is Rietveld 408576698