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_; |