diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 21:46:07 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 21:46:07 +0000 |
commit | 79558c2a026dd800a15d1dd0743a8d9a7e042601 (patch) | |
tree | 89af8ea30aedbf6ba3efbc1f0909c29d5ee440e9 /chrome/browser/history | |
parent | dfc3565886b90b6d5b0cae3f8e48f602d3293cf5 (diff) | |
download | chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.zip chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.tar.gz chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.tar.bz2 |
Fix bug 69468: Drag download does not work if there is URL redirection involved.
The fix is to keep track of the original URL.
BUG=69468
TEST=Manual test to verify.
Review URL: http://codereview.chromium.org/6131009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r-- | chrome/browser/history/download_create_info.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/history/download_create_info.h b/chrome/browser/history/download_create_info.h index 49ac635..0814350 100644 --- a/chrome/browser/history/download_create_info.h +++ b/chrome/browser/history/download_create_info.h @@ -36,7 +36,11 @@ struct DownloadCreateInfo { // DownloadItem fields FilePath path; + // The URL from which we are downloading. This is the final URL after any + // redirection by the server for |original_url_|. GURL url; + // The original URL before any redirection by the server for this URL. + GURL original_url; GURL referrer_url; FilePath suggested_path; // A number that should be added to the suggested path to make it unique. |