Commit 2ad92706 authored by sievers@chromium.org's avatar sievers@chromium.org

Respect command line flags for interstitial pages.

InterstitialPage implements RenderViewHostDelegate but does
not override GetWebkitPrefs() which in the base class only
returns default settings. For example, this does not allow 
compositing for interstitial pages ever.

BUG=
TEST=


Review URL: http://codereview.chromium.org/8826013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113352 0039d316-1c4b-4281-b951-d872f2087c98
parent d57f17af
...@@ -393,6 +393,11 @@ content::RendererPreferences InterstitialPage::GetRendererPrefs( ...@@ -393,6 +393,11 @@ content::RendererPreferences InterstitialPage::GetRendererPrefs(
return renderer_preferences_; return renderer_preferences_;
} }
WebPreferences InterstitialPage::GetWebkitPrefs() {
return content::GetContentClient()->browser()->GetWebkitPrefs(
render_view_host());
}
RenderViewHost* InterstitialPage::CreateRenderViewHost() { RenderViewHost* InterstitialPage::CreateRenderViewHost() {
RenderViewHost* render_view_host = new RenderViewHost( RenderViewHost* render_view_host = new RenderViewHost(
SiteInstance::CreateSiteInstance(tab()->browser_context()), SiteInstance::CreateSiteInstance(tab()->browser_context()),
......
...@@ -131,6 +131,7 @@ class CONTENT_EXPORT InterstitialPage : public content::NotificationObserver, ...@@ -131,6 +131,7 @@ class CONTENT_EXPORT InterstitialPage : public content::NotificationObserver,
base::i18n::TextDirection title_direction) OVERRIDE; base::i18n::TextDirection title_direction) OVERRIDE;
virtual content::RendererPreferences GetRendererPrefs( virtual content::RendererPreferences GetRendererPrefs(
content::BrowserContext* browser_context) const OVERRIDE; content::BrowserContext* browser_context) const OVERRIDE;
virtual WebPreferences GetWebkitPrefs() OVERRIDE;
// Invoked with the NavigationEntry that is going to be added to the // Invoked with the NavigationEntry that is going to be added to the
// navigation controller. // navigation controller.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment