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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 9323071: Use InterstitialPage through a delegate interface instead of deriving from it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 120576)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -329,6 +329,12 @@
new ChromeRenderViewHostObserver(render_view_host,
profile->GetNetworkPredictor());
new ExtensionMessageHandler(render_view_host);
+
+ if (render_view_host->delegate()->GetRenderViewType() ==
+ content::VIEW_TYPE_INTERSTITIAL_PAGE) {
+ render_view_host->Send(new ChromeViewMsg_SetAsInterstitial(
+ render_view_host->routing_id()));
+ }
}
void ChromeContentBrowserClient::RenderProcessHostCreated(
@@ -878,9 +884,7 @@
}
// Otherwise, display an SSL blocking page.
- SSLBlockingPage* blocking_page = new SSLBlockingPage(
- handler, overridable, callback);
- blocking_page->Show();
+ new SSLBlockingPage(handler, overridable, callback);
}
void ChromeContentBrowserClient::SelectClientCertificate(

Powered by Google App Engine
This is Rietveld 408576698