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

Unified Diff: android_webview/native/aw_web_contents_delegate.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: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index ef9355034abcd2f74fbec4d6421cc440a28e0209..427ffa369db6b189625bfca23f4c4d0d08d36c49 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -52,13 +52,15 @@ void AwWebContentsDelegate::FindReply(WebContents* web_contents,
final_update);
}
-bool AwWebContentsDelegate::CanDownload(content::RenderViewHost* source,
- int request_id,
- const std::string& request_method) {
+void AwWebContentsDelegate::CanDownload(
+ content::RenderViewHost* source,
+ int request_id,
+ const std::string& request_method,
+ const base::Callback<void(bool)>& callback) {
// Android webview intercepts download in its resource dispatcher host
// delegate, so should not reach here.
NOTREACHED();
- return false;
+ callback.Run(false);
}
void AwWebContentsDelegate::AddNewContents(content::WebContents* source,
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.h ('k') | chrome/browser/android/chrome_web_contents_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698