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

Unified Diff: components/cronet/android/cronet_in_memory_pref_store.cc

Issue 2692203007: Add PrefStore::GetValues (Closed)
Patch Set: Add GetValues to FilesystemJsonPrefStore 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/cronet/android/cronet_in_memory_pref_store.cc
diff --git a/components/cronet/android/cronet_in_memory_pref_store.cc b/components/cronet/android/cronet_in_memory_pref_store.cc
index 55362cf8f88e522704bea19be2630a4b9e62d328..c057e5be9a1f7da6fade9f8fbe423df95173cef3 100644
--- a/components/cronet/android/cronet_in_memory_pref_store.cc
+++ b/components/cronet/android/cronet_in_memory_pref_store.cc
@@ -18,6 +18,11 @@ bool CronetInMemoryPrefStore::GetValue(const std::string& key,
return prefs_.GetValue(key, value);
}
+std::unique_ptr<base::DictionaryValue> CronetInMemoryPrefStore::GetValues()
+ const {
+ return prefs_.AsDictionaryValue();
+}
+
bool CronetInMemoryPrefStore::GetMutableValue(const std::string& key,
base::Value** value) {
return prefs_.GetValue(key, value);
@@ -82,4 +87,3 @@ void CronetInMemoryPrefStore::ReportValueChanged(const std::string& key,
for (Observer& observer : observers_)
observer.OnPrefValueChanged(key);
}
-

Powered by Google App Engine
This is Rietveld 408576698