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

Unified Diff: components/prefs/json_pref_store.cc

Issue 2692203007: Add PrefStore::GetValues (Closed)
Patch Set: Address review comments 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/json_pref_store.cc
diff --git a/components/prefs/json_pref_store.cc b/components/prefs/json_pref_store.cc
index 026606a7b762fb3cbac735ec1e5bd068a12bf205..a9a39227d3fef97904abee35390c2fc54dc30ceb 100644
--- a/components/prefs/json_pref_store.cc
+++ b/components/prefs/json_pref_store.cc
@@ -190,6 +190,10 @@ bool JsonPrefStore::GetValue(const std::string& key,
return true;
}
+std::unique_ptr<base::DictionaryValue> JsonPrefStore::GetValues() const {
+ return prefs_->CreateDeepCopy();
+}
+
void JsonPrefStore::AddObserver(PrefStore::Observer* observer) {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698