| Index: chrome/browser/ui/views/external_tab_container_win.cc
|
| diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
|
| index 85306382b7670f308758d991de44f6d7a38c5e51..e39b66cad76b84b70b086b54e0e01ea84cea37f3 100644
|
| --- a/chrome/browser/ui/views/external_tab_container_win.cc
|
| +++ b/chrome/browser/ui/views/external_tab_container_win.cc
|
| @@ -664,9 +664,11 @@ bool ExternalTabContainerWin::TakeFocus(content::WebContents* source,
|
| return true;
|
| }
|
|
|
| -bool ExternalTabContainerWin::CanDownload(RenderViewHost* render_view_host,
|
| - int request_id,
|
| - const std::string& request_method) {
|
| +void ExternalTabContainerWin::CanDownload(
|
| + RenderViewHost* render_view_host,
|
| + int request_id,
|
| + const std::string& request_method,
|
| + const base::Callback<void(bool)>& callback) {
|
| if (load_requests_via_automation_) {
|
| if (automation_) {
|
| // In case the host needs to show UI that needs to take the focus.
|
| @@ -686,7 +688,7 @@ bool ExternalTabContainerWin::CanDownload(RenderViewHost* render_view_host,
|
| }
|
|
|
| // Never allow downloads.
|
| - return false;
|
| + callback.Run(false);
|
| }
|
|
|
| void ExternalTabContainerWin::RegisterRenderViewHostForAutomation(
|
|
|