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..de3b7a6e7e2626db2f2232385d5c6adc9776cf28 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
@@ -28,6 +28,7 @@ |
#include "chrome/browser/safe_browsing/malware_details.h" |
#include "chrome/browser/safe_browsing/ui_manager.h" |
#include "chrome/browser/tab_contents/tab_util.h" |
+#include "chrome/browser/ui/zoom/zoom_controller.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
@@ -39,6 +40,7 @@ |
#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,8 @@ void SafeBrowsingBlockingPage::OverrideRendererPrefs( |
Profile* profile = Profile::FromBrowserContext( |
web_contents_->GetBrowserContext()); |
renderer_preferences_util::UpdateFromSystemSettings(prefs, profile); |
+ prefs->default_zoom_level = |
+ ZoomController::FromWebContents(web_contents_)->GetDefaultZoomLevel(); |
} |
void SafeBrowsingBlockingPage::SetReportingPreference(bool report) { |