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 172ca09c8b385f63b9bd495b1b1d50bbf7b72f52..36f290adcd2fba9e842852faf627291c0c2c952d 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" |
@@ -399,6 +401,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) { |