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

Unified Diff: chrome/browser/prefs/preferences_service.cc

Issue 2698913005: Re-enable preferences service access for browser+ash (Closed)
Patch Set: . 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
« no previous file with comments | « chrome/browser/prefs/preferences_manifest.json ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/preferences_service.cc
diff --git a/chrome/browser/prefs/preferences_service.cc b/chrome/browser/prefs/preferences_service.cc
index 5494965b3ff818ad0eaa55cac18bd526989dd1a5..85b9c2a5763096657b7e00b0d2729a6f354ea13a 100644
--- a/chrome/browser/prefs/preferences_service.cc
+++ b/chrome/browser/prefs/preferences_service.cc
@@ -33,7 +33,8 @@ void PreferencesService::PreferenceChanged(const std::string& preference_name) {
service_->FindPreference(preference_name);
std::unique_ptr<base::DictionaryValue> dictionary =
base::MakeUnique<base::DictionaryValue>();
- dictionary->Set(preference_name, pref->GetValue()->CreateDeepCopy());
+ dictionary->SetWithoutPathExpansion(preference_name,
+ pref->GetValue()->CreateDeepCopy());
client_->OnPreferencesChanged(std::move(dictionary));
}
@@ -73,7 +74,7 @@ void PreferencesService::Subscribe(
preferences_change_registrar_->Add(
it, base::Bind(&PreferencesService::PreferenceChanged,
base::Unretained(this)));
- dictionary->Set(it, pref->GetValue()->CreateDeepCopy());
+ dictionary->SetWithoutPathExpansion(it, pref->GetValue()->CreateDeepCopy());
}
if (dictionary->empty())
« no previous file with comments | « chrome/browser/prefs/preferences_manifest.json ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698