From 9db08f1270a6ca637ea72b0230125d726441d128 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 29 Jul 2009 17:40:39 +0000 Subject: Implement the "This site is attempting to download multiple files. Do you want to allow this?" dialog on linux. BUG=12757 TEST=Download several files from the same domain. After the first download, you should be prompted for every additional file you want to download from that domain (try for example http://amnoid.de/ddsview/download.html , click on the "download" link twice). Review URL: http://codereview.chromium.org/159528 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21966 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/download/download_request_dialog_delegate_win.h | 4 ---- chrome/browser/download/download_request_manager.cc | 4 ---- 2 files changed, 8 deletions(-) (limited to 'chrome/browser/download') diff --git a/chrome/browser/download/download_request_dialog_delegate_win.h b/chrome/browser/download/download_request_dialog_delegate_win.h index b8edd38..387dce7 100644 --- a/chrome/browser/download/download_request_dialog_delegate_win.h +++ b/chrome/browser/download/download_request_dialog_delegate_win.h @@ -21,10 +21,6 @@ class DownloadRequestDialogDelegateWin : public DownloadRequestDialogDelegate, DownloadRequestDialogDelegateWin(TabContents* tab, DownloadRequestManager::TabDownloadState* host); - void set_host(DownloadRequestManager::TabDownloadState* host) { - host_ = host; - } - private: // DownloadRequestDialogDelegate methods. virtual void CloseWindow(); diff --git a/chrome/browser/download/download_request_manager.cc b/chrome/browser/download/download_request_manager.cc index d779b66..e5745d9 100644 --- a/chrome/browser/download/download_request_manager.cc +++ b/chrome/browser/download/download_request_manager.cc @@ -70,10 +70,6 @@ void DownloadRequestManager::TabDownloadState::PromptUserForDownload( NotifyCallbacks(DownloadRequestManager::delegate_->ShouldAllowDownload()); } else { dialog_delegate_ = DownloadRequestDialogDelegate::Create(tab, this); - // TODO(estade): the dialog delegate isn't yet implemented on linux. Just - // assume we shouldn't allow the download. - if (dialog_delegate_ == NULL) - NotifyCallbacks(false); } } -- cgit v1.1