| 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 a3b0d2d62715fde25ae1c85f4c363deae0c22c62..23adc3cfb72e3ed92c06cf856aae5a9abb020b77 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1087,8 +1087,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());
|
| @@ -1436,7 +1436,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(),
|
|
|