A few fixes for the HostZoomMap:
* Persist changes from Incognito (per UI leads)
* Clear the zoom settings when the user does "reset to defaults" in prefs
BUG=none
TEST=Open incognito, change a zoom level, restart, see that it's persisted
Review URL: http://codereview.chromium.org/551213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37595 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index c197a78..4e83acd 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -415,11 +415,7 @@
}
virtual HostZoomMap* GetHostZoomMap() {
- // Need to use a separate map from the normal one to avoid persisting zoom
- // changes in OTR mode.
- if (!host_zoom_map_)
- host_zoom_map_ = new HostZoomMap(this);
- return host_zoom_map_.get();
+ return profile_->GetHostZoomMap();
}
virtual Blacklist* GetPrivacyBlacklist() {
@@ -546,8 +542,6 @@
scoped_ptr<HostContentSettingsMap> host_content_settings_map_;
- scoped_refptr<HostZoomMap> host_zoom_map_;
-
// The download manager that only stores downloaded items in memory.
scoped_refptr<DownloadManager> download_manager_;