diff options
author | tom.cassiotis@gmail.com <tom.cassiotis@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-12 19:56:33 +0000 |
---|---|---|
committer | tom.cassiotis@gmail.com <tom.cassiotis@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-12 19:56:33 +0000 |
commit | 19d2669882144f4498317d33d2d14f808d98abc8 (patch) | |
tree | 841f4db505558a335b9ad25a35874145d4549642 /content/browser/host_zoom_map_impl.cc | |
parent | 8bf66560e5ffce9dda9655550d3b6b0c50d2fbf3 (diff) | |
download | chromium_src-19d2669882144f4498317d33d2d14f808d98abc8.zip chromium_src-19d2669882144f4498317d33d2d14f808d98abc8.tar.gz chromium_src-19d2669882144f4498317d33d2d14f808d98abc8.tar.bz2 |
Inconsistent default zoom handling in incognito mode
The HostZoomMap(Impl) is normally initialized through the
User Profile but when in Incognito a the newly created
HostZoomMap(Impl) is initialized by copying the HostZoomMap(Impl)
of the parent non-Incognito version.
The problem is that HostZoomMapImpl::CopyFrom only copies the
content of the map but not the default_zoom_level_. This results
in new Incognito pages using a zoom level of zero which is the
constructor initialized value of default_zoom_level_.
Note: I do not have commit rights.
Contributed by tom.cassiotis@gmail.com
BUG=168989
TEST=Manual
Review URL: https://chromiumcodereview.appspot.com/11878005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/host_zoom_map_impl.cc')
-rw-r--r-- | content/browser/host_zoom_map_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/host_zoom_map_impl.cc b/content/browser/host_zoom_map_impl.cc index 66a03d6..942d6f4 100644 --- a/content/browser/host_zoom_map_impl.cc +++ b/content/browser/host_zoom_map_impl.cc @@ -58,6 +58,7 @@ void HostZoomMapImpl::CopyFrom(HostZoomMap* copy_interface) { i != copy->host_zoom_levels_.end(); ++i) { host_zoom_levels_[i->first] = i->second; } + default_zoom_level_ = copy->default_zoom_level_; } double HostZoomMapImpl::GetZoomLevel(const std::string& host) const { |