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

Unified Diff: chrome/browser/ui/external_protocol_dialog_delegate.cc

Issue 2538353002: fix external protocol handling for OOPIFs (Closed)
Patch Set: remove unnecessary include Created 4 years 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/ui/cocoa/external_protocol_dialog.mm ('k') | chrome/test/data/page_with_mailto.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/external_protocol_dialog_delegate.cc
diff --git a/chrome/browser/ui/external_protocol_dialog_delegate.cc b/chrome/browser/ui/external_protocol_dialog_delegate.cc
index 2f2835608cdb0fb399741607ee843d57fe957d50..0116eb0387811373fc32ca2ffafe5b6f576cb371 100644
--- a/chrome/browser/ui/external_protocol_dialog_delegate.cc
+++ b/chrome/browser/ui/external_protocol_dialog_delegate.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/external_protocol_dialog_delegate.h"
#include "chrome/browser/external_protocol/external_protocol_handler.h"
+#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
@@ -65,8 +66,10 @@ void ExternalProtocolDialogDelegate::DoAccept(const GURL& url,
ExternalProtocolHandler::DONT_BLOCK);
}
- ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(
- url, render_process_host_id_, tab_contents_id_);
+ content::WebContents* web_contents =
+ tab_util::GetWebContentsByID(render_process_host_id_, tab_contents_id_);
+
+ ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url, web_contents);
}
void ExternalProtocolDialogDelegate::DoCancel(const GURL& url,
« no previous file with comments | « chrome/browser/ui/cocoa/external_protocol_dialog.mm ('k') | chrome/test/data/page_with_mailto.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698