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

Unified Diff: content/browser/host_zoom_map.cc

Issue 6720013: Get rid of PrefService::GetMutableDictionary/GetMutableList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | content/browser/host_zoom_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/host_zoom_map.cc
diff --git a/content/browser/host_zoom_map.cc b/content/browser/host_zoom_map.cc
index 2e5d82ec637ec201856c956bb6d44fdcc27fe6bb..523d6d7c82c3558afa2a7d2ba861b9de6ca1d8f0 100644
--- a/content/browser/host_zoom_map.cc
+++ b/content/browser/host_zoom_map.cc
@@ -127,10 +127,9 @@ void HostZoomMap::SetZoomLevel(const GURL& url, double level) {
updating_preferences_ = true;
{
- ScopedUserPrefUpdate update(profile_->GetPrefs(),
+ DictionaryPrefUpdate update(profile_->GetPrefs(),
prefs::kPerHostZoomLevels);
- DictionaryValue* host_zoom_dictionary =
- profile_->GetPrefs()->GetMutableDictionary(prefs::kPerHostZoomLevels);
+ DictionaryValue* host_zoom_dictionary = update.Get();
if (level == default_zoom_level_) {
host_zoom_dictionary->RemoveWithoutPathExpansion(host, NULL);
} else {
« no previous file with comments | « no previous file | content/browser/host_zoom_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698