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

Unified Diff: components/security_interstitials/content/security_interstitial_controller_client.cc

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Mock out help center URL in SafeBrowsingBlockingPageTest Created 3 years, 6 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: components/security_interstitials/content/security_interstitial_controller_client.cc
diff --git a/components/security_interstitials/content/security_interstitial_controller_client.cc b/components/security_interstitials/content/security_interstitial_controller_client.cc
index 87d0789a3912da7f940726d322303a7f59526e8d..987f85f4b8bc2a7fce7facb9c454aa83e1441838 100644
--- a/components/security_interstitials/content/security_interstitial_controller_client.cc
+++ b/components/security_interstitials/content/security_interstitial_controller_client.cc
@@ -71,6 +71,14 @@ void SecurityInterstitialControllerClient::Reload() {
web_contents_->GetController().Reload(content::ReloadType::NORMAL, true);
}
+void SecurityInterstitialControllerClient::OpenUrlInNewForegroundTab(
+ const GURL& url) {
+ content::OpenURLParams params(url, Referrer(),
+ WindowOpenDisposition::NEW_FOREGROUND_TAB,
+ ui::PAGE_TRANSITION_LINK, false);
+ web_contents_->OpenURL(params);
+}
+
void SecurityInterstitialControllerClient::OpenUrlInCurrentTab(
const GURL& url) {
content::OpenURLParams params(url, Referrer(),

Powered by Google App Engine
This is Rietveld 408576698