Chromium Code Reviews| 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 63c0b6517bfea33eb01665c1747f12ca9ffa49c7..050021c40376371ab78c0dd36fac7ccc04cc2f69 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 = |
|
sky
2016/12/15 20:44:28
Same comment.
davidsac (gone - try alexmos)
2016/12/15 22:40:23
Same reply.
|
| + tab_util::GetWebContentsByID(render_process_host_id_, tab_contents_id_); |
| + |
| + ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url, web_contents); |
| } |
| void ExternalProtocolDialogDelegate::DoCancel(const GURL& url, |