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

Unified Diff: chrome/browser/chrome_page_zoom.cc

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test compilation. Created 6 years, 4 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: chrome/browser/chrome_page_zoom.cc
diff --git a/chrome/browser/chrome_page_zoom.cc b/chrome/browser/chrome_page_zoom.cc
index 5e76cfff5aa70f1b5bb442be9132a79c12d234ee..34dd52197b26e3add0aec4c21fe08fda981cf206 100644
--- a/chrome/browser/chrome_page_zoom.cc
+++ b/chrome/browser/chrome_page_zoom.cc
@@ -72,9 +72,7 @@ void Zoom(content::WebContents* web_contents, content::PageZoom zoom) {
DCHECK(zoom_controller);
double current_zoom_level = zoom_controller->GetZoomLevel();
- double default_zoom_level =
- Profile::FromBrowserContext(web_contents->GetBrowserContext())->
- GetPrefs()->GetDouble(prefs::kDefaultZoomLevel);
+ double default_zoom_level = zoom_controller->GetDefaultZoomLevel();
if (zoom == content::PAGE_ZOOM_RESET) {
zoom_controller->SetZoomLevel(default_zoom_level);

Powered by Google App Engine
This is Rietveld 408576698