Index: base/prefs/pref_service.cc |
diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc |
index 65605c5f8e6d346f1d10f82b3a1dc76b08e989a9..54a9b65f40ec87246e32845ca839905c6f831f22 100644 |
--- a/base/prefs/pref_service.cc |
+++ b/base/prefs/pref_service.cc |
@@ -554,3 +554,13 @@ const base::Value* PrefService::GetPreferenceValue( |
return NULL; |
} |
+ |
+scoped_ptr<base::DictionaryValue> PrefService::GetBrowserDictionary() const { |
+ const base::Value* browser_value = NULL; |
+ if (!user_pref_store_->GetValue("browser", &browser_value)) |
+ return scoped_ptr<base::DictionaryValue>(); |
+ const base::DictionaryValue* browser_dict = NULL; |
+ if (!browser_value->GetAsDictionary(&browser_dict)) |
+ return scoped_ptr<base::DictionaryValue>(); |
+ return make_scoped_ptr(browser_dict->DeepCopy()); |
+} |