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

Unified Diff: chrome/browser/profile.cc

Issue 2079010: Forget zoom levels set/changed in incognito mode when exiting incognito. Thi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/host_zoom_map.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.cc
===================================================================
--- chrome/browser/profile.cc (revision 47531)
+++ chrome/browser/profile.cc (working copy)
@@ -449,7 +449,9 @@
}
virtual HostZoomMap* GetHostZoomMap() {
- return profile_->GetHostZoomMap();
+ if (!host_zoom_map_)
+ host_zoom_map_ = new HostZoomMap(this);
+ return host_zoom_map_.get();
}
virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap() {
@@ -601,6 +603,9 @@
// We use a non-writable content settings map for OTR.
scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
+ // Use a separate zoom map for OTR.
+ scoped_refptr<HostZoomMap> host_zoom_map_;
+
// Use a special WebKit context for OTR browsing.
scoped_refptr<WebKitContext> webkit_context_;
« no previous file with comments | « chrome/browser/host_zoom_map.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698