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

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: fix cros 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
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/chromeos/offline/offline_load_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 120733)
+++ 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(
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/chromeos/offline/offline_load_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698