| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index b21d078d474bad97ed9cb667551b7ebc121c08c6..e210445dcb0e9b47e3bc9fae91c20b15cc0c71d7 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1105,8 +1105,9 @@ void RenderViewHostImpl::OnDocumentAvailableInMainFrame(
|
| if (!uses_temporary_zoom_level)
|
| return;
|
|
|
| - HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>(
|
| - HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext()));
|
| + HostZoomMapImpl* host_zoom_map =
|
| + static_cast<HostZoomMapImpl*>(HostZoomMap::GetDefaultForBrowserContext(
|
| + GetProcess()->GetBrowserContext()));
|
| host_zoom_map->SetTemporaryZoomLevel(GetProcess()->GetID(),
|
| GetRoutingID(),
|
| host_zoom_map->GetDefaultZoomLevel());
|
| @@ -1426,8 +1427,9 @@ void RenderViewHostImpl::NotifyMoveOrResizeStarted() {
|
|
|
| void RenderViewHostImpl::OnDidZoomURL(double zoom_level,
|
| const GURL& url) {
|
| - HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>(
|
| - HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext()));
|
| + HostZoomMapImpl* host_zoom_map =
|
| + static_cast<HostZoomMapImpl*>(HostZoomMap::GetDefaultForBrowserContext(
|
| + GetProcess()->GetBrowserContext()));
|
|
|
| host_zoom_map->SetZoomLevelForView(GetProcess()->GetID(),
|
| GetRoutingID(),
|
|
|