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 ed92999213e712fb0eb887cf285507bf6eb858c4..5f5167b9e70e3f428a73468f830c38e29d7b533c 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1091,8 +1091,7 @@ void RenderViewHostImpl::OnDocumentAvailableInMainFrame( |
return; |
HostZoomMapImpl* host_zoom_map = |
- static_cast<HostZoomMapImpl*>(HostZoomMap::GetDefaultForBrowserContext( |
- GetProcess()->GetBrowserContext())); |
+ static_cast<HostZoomMapImpl*>(HostZoomMap::Get(GetSiteInstance())); |
host_zoom_map->SetTemporaryZoomLevel(GetProcess()->GetID(), |
GetRoutingID(), |
host_zoom_map->GetDefaultZoomLevel()); |
@@ -1406,8 +1405,7 @@ void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
void RenderViewHostImpl::OnDidZoomURL(double zoom_level, |
const GURL& url) { |
HostZoomMapImpl* host_zoom_map = |
- static_cast<HostZoomMapImpl*>(HostZoomMap::GetDefaultForBrowserContext( |
- GetProcess()->GetBrowserContext())); |
+ static_cast<HostZoomMapImpl*>(HostZoomMap::Get(GetSiteInstance())); |
host_zoom_map->SetZoomLevelForView(GetProcess()->GetID(), |
GetRoutingID(), |