| Index: chrome/browser/download/download_request_infobar_delegate.cc
|
| diff --git a/chrome/browser/download/download_request_infobar_delegate.cc b/chrome/browser/download/download_request_infobar_delegate.cc
|
| index e0c89aaa3c751ce30630c48169c89de5b9eb7b88..408c18610a11df96f684bc1c47e907a53e26f146 100644
|
| --- a/chrome/browser/download/download_request_infobar_delegate.cc
|
| +++ b/chrome/browser/download/download_request_infobar_delegate.cc
|
| @@ -13,7 +13,7 @@ DownloadRequestInfoBarDelegate::FakeCreateCallback*
|
| DownloadRequestInfoBarDelegate::callback_ = NULL;
|
|
|
| DownloadRequestInfoBarDelegate::~DownloadRequestInfoBarDelegate() {
|
| - if (host_)
|
| + if (host_.get())
|
| host_->Cancel();
|
| }
|
|
|
| @@ -68,11 +68,11 @@ string16 DownloadRequestInfoBarDelegate::GetButtonLabel(
|
| }
|
|
|
| bool DownloadRequestInfoBarDelegate::Accept() {
|
| - if (host_) {
|
| + if (host_.get()) {
|
| // Accept() call will invalidate host_ weak pointer if no further
|
| // prompts are required.
|
| host_->Accept();
|
| }
|
|
|
| - return !host_;
|
| + return !host_.get();
|
| }
|
|
|