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

Unified Diff: base/prefs/pref_service.cc

Issue 511393003: No longer register app window placement preference keys on the fly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 3 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_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());
+}

Powered by Google App Engine
This is Rietveld 408576698