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

Unified Diff: chrome/browser/tab_contents/chrome_interstitial_page.cc

Issue 7066039: Remove dependency on PrefChangeRegistrar and renderer_preferences_util from content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/tab_contents/chrome_interstitial_page.cc
===================================================================
--- chrome/browser/tab_contents/chrome_interstitial_page.cc (revision 86494)
+++ chrome/browser/tab_contents/chrome_interstitial_page.cc (working copy)
@@ -5,6 +5,8 @@
#include "chrome/browser/tab_contents/chrome_interstitial_page.h"
#include "chrome/browser/dom_operation_notification_details.h"
+#include "chrome/browser/renderer_preferences_util.h"
+#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_service.h"
#include "content/common/notification_source.h"
@@ -12,6 +14,10 @@
bool new_navigation,
const GURL& url)
: InterstitialPage(tab, new_navigation, url) {
+ RendererPreferences prefs;
+ renderer_preferences_util::UpdateFromSystemSettings(
+ &prefs, tab->profile());
+ set_renderer_preferences(prefs);
}
ChromeInterstitialPage::~ChromeInterstitialPage() {

Powered by Google App Engine
This is Rietveld 408576698