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

Unified Diff: components/prefs/pref_value_map.cc

Issue 2760453003: Work In Progess
Patch Set: convert local_state to use pre_client_store_ Created 3 years, 9 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
« no previous file with comments | « components/prefs/pref_service.cc ('k') | services/ui/display/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_value_map.cc
diff --git a/components/prefs/pref_value_map.cc b/components/prefs/pref_value_map.cc
index 1d120a8fbd94ba7d942422824b353af52bcdbd52..dcafe373ee97a399df0170215b84fbd69c61fb1f 100644
--- a/components/prefs/pref_value_map.cc
+++ b/components/prefs/pref_value_map.cc
@@ -18,18 +18,29 @@ PrefValueMap::~PrefValueMap() {}
bool PrefValueMap::GetValue(const std::string& key,
const base::Value** value) const {
+ if (!key.compare("settings.display.properties")) {
+ LOG(ERROR) << "PrefValueMap::GetValue 1 key: "<< key;
+ for (auto it = prefs_.begin(); it != prefs_.end(); ++it)
+ LOG(ERROR) << "PrefValueMap key: " << it->first;
+ }
auto it = prefs_.find(key);
if (it == prefs_.end())
return false;
+ if (!key.compare("settings.display.properties"))
+ LOG(ERROR) << "PrefValueMap::GetValue 2 key: "<< key;
const base::Value* got_value = it->second.get();
if (value && got_value)
*value = got_value;
+ if (!key.compare("settings.display.properties"))
+ LOG(ERROR) << "PrefValueMap::GetValue 3 key: "<< key;
return !!got_value;
}
bool PrefValueMap::GetValue(const std::string& key, base::Value** value) {
+ if (!key.compare("settings.display.properties"))
+ LOG(ERROR) << "PrefValueMap::GetValue key: "<< key;
auto it = prefs_.find(key);
if (it == prefs_.end())
return false;
« no previous file with comments | « components/prefs/pref_service.cc ('k') | services/ui/display/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698