Provide authorization value to the download manager
- Provides the authorization code to the download manager
while downloading a file.
CR-Fixed: SWE-6011
Change-Id: Id99349169c138d714b26340b3baa6c9b664ea33c
Conflicts:
src/com/android/browser/DownloadHandler.java
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 7fafa03..f5f72e7 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -1188,10 +1188,10 @@
mDownloadListener = new BrowserDownloadListener() {
public void onDownloadStart(String url, String userAgent,
- String contentDisposition, String mimetype, String referer,
+ String contentDisposition, String mimetype, String referer, String auth,
long contentLength) {
mWebViewController.onDownloadStart(Tab.this, url, userAgent, contentDisposition,
- mimetype, referer, contentLength);
+ mimetype, referer, auth, contentLength);
}
};
@@ -1433,10 +1433,10 @@
// just need to dismiss the mSubView, rather than close the Tab
mSubView.setDownloadListener(new BrowserDownloadListener() {
public void onDownloadStart(String url, String userAgent,
- String contentDisposition, String mimetype, String referer,
+ String contentDisposition, String mimetype, String referer, String auth,
long contentLength) {
mWebViewController.onDownloadStart(Tab.this, url, userAgent,
- contentDisposition, mimetype, referer, contentLength);
+ contentDisposition, mimetype, referer, auth, contentLength);
if (mSubView.copyBackForwardList().getSize() == 0) {
// This subwindow was opened for the sole purpose of
// downloading a file. Remove it.