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 f09be50cc455cfccd7b1edc9764228c44469c2f2..afc3b7c8181294bcb1db3caa224a5904b61bc276 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1069,8 +1069,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()); |
@@ -1384,8 +1383,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(), |