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); |