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

Unified Diff: components/prefs/pref_service.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_registry.cc ('k') | components/prefs/pref_value_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_service.cc
diff --git a/components/prefs/pref_service.cc b/components/prefs/pref_service.cc
index 89033a27ae9dfe416eb988f5d3a74afa272dbc75..472846fd57862449a5f0adf36e034257ca75c8c5 100644
--- a/components/prefs/pref_service.cc
+++ b/components/prefs/pref_service.cc
@@ -77,6 +77,7 @@ PrefService::PrefService(
CHECK(pref_value_store_);
InitFromStorage(async);
+ LOG(ERROR) << "PrefService::PrefService init";
}
PrefService::~PrefService() {
@@ -235,8 +236,13 @@ const PrefService::Preference* PrefService::FindPreference(
if (it != prefs_map_.end())
return &(it->second);
const base::Value* default_value = NULL;
+ if (!pref_name.compare("settings.display.properties"))
+ LOG(ERROR) << "PrefService::FindPreference - 1";
if (!pref_registry_->defaults()->GetValue(pref_name, &default_value))
return NULL;
+ if (!pref_name.compare("settings.display.properties"))
+ LOG(ERROR) << "PrefService::FindPreference - 2";
+
it = prefs_map_.insert(
std::make_pair(pref_name, Preference(
this, pref_name, default_value->GetType()))).first;
« no previous file with comments | « components/prefs/pref_registry.cc ('k') | components/prefs/pref_value_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698