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

Unified Diff: ios/chrome/browser/interstitials/ios_chrome_controller_client.mm

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Fix compilation error 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
« no previous file with comments | « ios/chrome/browser/interstitials/ios_chrome_controller_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/interstitials/ios_chrome_controller_client.mm
diff --git a/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm b/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm
index 1df9dc058b2954d5f79926220a43d6cdcb13d771..29788082a965e73173fdbec1b26090c5db0c7c72 100644
--- a/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm
+++ b/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm
@@ -69,6 +69,12 @@ void IOSChromeControllerClient::OpenUrlInCurrentTab(const GURL& url) {
ui::PAGE_TRANSITION_LINK, false));
}
+void IOSChromeControllerClient::OpenUrlInNewForegroundTab(const GURL& url) {
+ web_state_->OpenURL(web::WebState::OpenURLParams(
+ url, web::Referrer(), WindowOpenDisposition::NEW_FOREGROUND_TAB,
+ ui::PAGE_TRANSITION_LINK, false));
+}
+
const std::string& IOSChromeControllerClient::GetApplicationLocale() const {
return GetApplicationContext()->GetApplicationLocale();
}
« no previous file with comments | « ios/chrome/browser/interstitials/ios_chrome_controller_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698