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

Unified Diff: chrome/browser/chrome_page_zoom.cc

Issue 541103002: Introduce ChromeZoomLevelPref, make zoom level prefs independent of profile prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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