| 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 500650094a8e8d3126a893b8fe5d87a7ed366b77..9ecf55de7a668371aa8c63fd9b0dae64e3392e98 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1125,8 +1125,8 @@ 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::Get(GetSiteInstance()));
|
| host_zoom_map->SetTemporaryZoomLevel(GetProcess()->GetID(),
|
| GetRoutingID(),
|
| host_zoom_map->GetDefaultZoomLevel());
|
| @@ -1483,7 +1483,7 @@ void RenderViewHostImpl::NotifyMoveOrResizeStarted() {
|
| void RenderViewHostImpl::OnDidZoomURL(double zoom_level,
|
| const GURL& url) {
|
| HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>(
|
| - HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext()));
|
| + HostZoomMap::Get(GetSiteInstance()));
|
|
|
| host_zoom_map->SetZoomLevelForView(GetProcess()->GetID(),
|
| GetRoutingID(),
|
|
|