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

Unified Diff: content/browser/tab_contents/tab_contents.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: fix mac/cros browsertests 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
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 122827)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -116,6 +116,7 @@
using content::DownloadItem;
using content::DownloadManager;
using content::GlobalRequestID;
+using content::HostZoomMap;
using content::InterstitialPage;
using content::NavigationController;
using content::NavigationEntry;
@@ -1198,7 +1199,7 @@
double TabContents::GetZoomLevel() const {
HostZoomMapImpl* zoom_map = static_cast<HostZoomMapImpl*>(
- GetBrowserContext()->GetHostZoomMap());
+ HostZoomMap::GetForBrowserContext(GetBrowserContext()));
if (!zoom_map)
return 0;
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698