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

Unified Diff: chrome/browser/android/chrome_web_contents_delegate_android.cc

Issue 13609002: fix a problem that android cannot download files with basic authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/android/chrome_web_contents_delegate_android.cc
diff --git a/chrome/browser/android/chrome_web_contents_delegate_android.cc b/chrome/browser/android/chrome_web_contents_delegate_android.cc
index 56f993d5ba30e2dca8e4308b2b891dbe94b6e969..3e439a7bff48085662a695b77fc658146f0cbdbe 100644
--- a/chrome/browser/android/chrome_web_contents_delegate_android.cc
+++ b/chrome/browser/android/chrome_web_contents_delegate_android.cc
@@ -231,8 +231,9 @@ ChromeWebContentsDelegateAndroid::GetJavaScriptDialogManager() {
bool ChromeWebContentsDelegateAndroid::CanDownload(
content::RenderViewHost* source,
int request_id,
- const std::string& request_method) {
- if (request_method == net::HttpRequestHeaders::kGetMethod) {
+ const std::string& request_method,
+ bool has_auth) {
+ if (request_method == net::HttpRequestHeaders::kGetMethod && !has_auth) {
content::DownloadControllerAndroid::Get()->CreateGETDownload(
source, request_id);
return false;

Powered by Google App Engine
This is Rietveld 408576698