Chromium Code Reviews| Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc |
| diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc |
| index cde562989399e1a5cbb13dff2ccda27a1e7e7b20..988e99c92858bf4baaf35dfcb4c8ccbd83da58a6 100644 |
| --- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc |
| +++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc |
| @@ -244,10 +244,12 @@ void LaunchURL( |
| // we assume it can be executed. |
| if (is_whitelisted) { |
| ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck( |
| - url, render_process_id, web_contents->GetRoutingID()); |
| + url, render_process_id, |
| + web_contents->GetRenderViewHost()->GetRoutingID()); |
|
Charlie Reis
2016/11/23 07:53:35
This line looks potentially wrong to me, before an
ncarter (slow)
2016/11/23 18:04:22
Agree, with charlie that there are bugs here that
alexmos
2016/11/23 22:46:20
Nick/Charlie: thanks for pointing out these proble
Charlie Reis
2016/11/23 22:48:27
Yes, a TODO citing that bug is fine. No need to f
|
| } else { |
| ExternalProtocolHandler::LaunchUrlWithDelegate( |
| - url, render_process_id, web_contents->GetRoutingID(), page_transition, |
| + url, render_process_id, |
| + web_contents->GetRenderViewHost()->GetRoutingID(), page_transition, |
| has_user_gesture, g_external_protocol_handler_delegate); |
| } |
| } |