summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authorbenjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 19:54:50 +0000
committerbenjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 19:54:50 +0000
commitc09a8fda3df3d0a9e301df57638f5cbb72e590af (patch)
tree5783aa5c7169d57d267a13fcb8b5548ee9a33891 /content/shell
parenta5e7a4071189787eed5612dbfa4a612aede6e8fa (diff)
downloadchromium_src-c09a8fda3df3d0a9e301df57638f5cbb72e590af.zip
chromium_src-c09a8fda3df3d0a9e301df57638f5cbb72e590af.tar.gz
chromium_src-c09a8fda3df3d0a9e301df57638f5cbb72e590af.tar.bz2
This split will facilitate testing DownloadQuery and other users of DownloadItems.
Review URL: http://codereview.chromium.org/8503018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_download_manager_delegate.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/shell/shell_download_manager_delegate.cc b/content/shell/shell_download_manager_delegate.cc
index b70bbcd..4660f0b 100644
--- a/content/shell/shell_download_manager_delegate.cc
+++ b/content/shell/shell_download_manager_delegate.cc
@@ -42,17 +42,17 @@ void ShellDownloadManagerDelegate::Shutdown() {
bool ShellDownloadManagerDelegate::ShouldStartDownload(int32 download_id) {
DownloadItem* download =
download_manager_->GetActiveDownloadItem(download_id);
- DownloadStateInfo state = download->state_info();
+ DownloadStateInfo state = download->GetStateInfo();
if (!state.force_file_name.empty())
return true;
FilePath generated_name = net::GenerateFileName(
download->GetURL(),
- download->content_disposition(),
- download->referrer_charset(),
- download->suggested_filename(),
- download->mime_type(),
+ download->GetContentDisposition(),
+ download->GetReferrerCharset(),
+ download->GetSuggestedFilename(),
+ download->GetMimeType(),
"download");
// Since we have no download UI, show the user a dialog always.