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

Unified Diff: chrome/browser/ui/views/external_tab_container_win.cc

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott Created 7 years, 9 months 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
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(
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.h ('k') | chrome/renderer/resources/extensions/web_view_experimental.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698