diff options
author | inferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-29 22:33:15 +0000 |
---|---|---|
committer | inferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-29 22:33:15 +0000 |
commit | 02fd1ecdadfd2c0ffe0426188bafff7f1a942919 (patch) | |
tree | c7aa6f35ccd3b8a393940381d1dc193eb5e5e56c /chrome/browser/download/download_request_infobar_delegate.cc | |
parent | 1414de82ef8592ced38d6424e9e763877a90e25a (diff) | |
download | chromium_src-02fd1ecdadfd2c0ffe0426188bafff7f1a942919.zip chromium_src-02fd1ecdadfd2c0ffe0426188bafff7f1a942919.tar.gz chromium_src-02fd1ecdadfd2c0ffe0426188bafff7f1a942919.tar.bz2 |
Patch the Browser GDI crash with excessive downloads by restricting maximum number of downloads allowed at one time. When this limit is reached, we re-prompt the user.
BUG=39277
TEST=None
Review URL: http://codereview.chromium.org/1539002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43006 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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/download/download_request_infobar_delegate.cc b/chrome/browser/download/download_request_infobar_delegate.cc index 3a6aa5d..88c83fc 100644 --- a/chrome/browser/download/download_request_infobar_delegate.cc +++ b/chrome/browser/download/download_request_infobar_delegate.cc @@ -51,9 +51,9 @@ std::wstring DownloadRequestInfoBarDelegate::GetButtonLabel( bool DownloadRequestInfoBarDelegate::Accept() { if (host_) { host_->Accept(); - host_ = NULL; } - return true; + // Accept() call will nullify host_ if no furthur prompts are required. + return !host_; } bool DownloadRequestInfoBarDelegate::Cancel() { |