Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Unified Diff: content/browser/renderer_host/async_resource_handler.cc

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/async_resource_handler.cc
===================================================================
--- content/browser/renderer_host/async_resource_handler.cc (revision 122827)
+++ content/browser/renderer_host/async_resource_handler.cc (working copy)
@@ -29,6 +29,7 @@
using base::TimeTicks;
using content::GlobalRequestID;
+using content::HostZoomMap;
namespace {
@@ -134,7 +135,8 @@
DevToolsNetLogObserver::PopulateResponseInfo(request, response);
content::ResourceContext* resource_context = filter_->resource_context();
- content::HostZoomMap* host_zoom_map = resource_context->GetHostZoomMap();
+ content::HostZoomMap* host_zoom_map =
+ HostZoomMap::GetForResourceContext(resource_context);
ResourceDispatcherHostRequestInfo* info = rdh_->InfoForRequest(request);
if (info->resource_type() == ResourceType::MAIN_FRAME && host_zoom_map) {

Powered by Google App Engine
This is Rietveld 408576698