summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_request_infobar_delegate.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 17:09:01 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 17:09:01 +0000
commit4129132ccbbc05abb8bfd89b3d7d5316c4d7d136 (patch)
treeb01682d5ad9a9e73c64217299c383f2d281a9864 /chrome/browser/download/download_request_infobar_delegate.cc
parent8bad4795cbf8afd699f6c3dc111c8dba11a280d3 (diff)
downloadchromium_src-4129132ccbbc05abb8bfd89b3d7d5316c4d7d136.zip
chromium_src-4129132ccbbc05abb8bfd89b3d7d5316c4d7d136.tar.gz
chromium_src-4129132ccbbc05abb8bfd89b3d7d5316c4d7d136.tar.bz2
Rename DownloadRequestManager to DownloadRequestLimiter.
We already have too many classes named Manager in the download code. This also contains some minor cleanup changes like comment updates. TEST=unit_tests, browser_tests, ui_tests BUG=48913 Review URL: http://codereview.chromium.org/3011001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_request_infobar_delegate.cc')
-rw-r--r--chrome/browser/download/download_request_infobar_delegate.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/download/download_request_infobar_delegate.cc b/chrome/browser/download/download_request_infobar_delegate.cc
index 88c83fc..4a401bb 100644
--- a/chrome/browser/download/download_request_infobar_delegate.cc
+++ b/chrome/browser/download/download_request_infobar_delegate.cc
@@ -11,7 +11,7 @@
#include "grit/theme_resources.h"
DownloadRequestInfoBarDelegate::DownloadRequestInfoBarDelegate(TabContents* tab,
- DownloadRequestManager::TabDownloadState* host)
+ DownloadRequestLimiter::TabDownloadState* host)
: ConfirmInfoBarDelegate(tab),
host_(host) {
if (tab)
@@ -50,9 +50,10 @@ std::wstring DownloadRequestInfoBarDelegate::GetButtonLabel(
bool DownloadRequestInfoBarDelegate::Accept() {
if (host_) {
+ // Accept() call will nullify host_ if no further prompts are required.
host_->Accept();
}
- // Accept() call will nullify host_ if no furthur prompts are required.
+
return !host_;
}