Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
index b859f7343d24e682fb2807aaf19a8e5772a9faf5..1e7d2c9ae289d2641158f2db67cb0b5bff845756 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
@@ -35,10 +35,12 @@ |
#include "chrome/grit/locale_settings.h" |
#include "components/google/core/browser/google_util.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/host_zoom_map.h" |
#include "content/public/browser/interstitial_page.h" |
#include "content/public/browser/navigation_controller.h" |
#include "content/public/browser/user_metrics.h" |
#include "content/public/browser/web_contents.h" |
+#include "content/public/common/renderer_preferences.h" |
#include "grit/browser_resources.h" |
#include "net/base/escape.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -448,6 +450,10 @@ void SafeBrowsingBlockingPage::OverrideRendererPrefs( |
Profile* profile = Profile::FromBrowserContext( |
web_contents_->GetBrowserContext()); |
renderer_preferences_util::UpdateFromSystemSettings(prefs, profile); |
+ // TODO(wjmaclean): Convert this to use the HostZoomMap for the WebContents |
+ // when HostZoomMap moves to StoragePartition. |
+ prefs->default_zoom_level = content::HostZoomMap::GetDefaultForBrowserContext( |
+ profile)->GetDefaultZoomLevel(); |
} |
void SafeBrowsingBlockingPage::SetReportingPreference(bool report) { |