summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/external_tab_container_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/external_tab_container_win.cc')
-rw-r--r--chrome/browser/ui/views/external_tab_container_win.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
index 8530638..e39b66c 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(