Index: chrome/browser/download/download_request_limiter.cc |
diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc |
index 9431b79c2da70748c78abbcafe3c937021dc8448..504af77997c078f8e9cc5e0b111bd19c117ebebc 100644 |
--- a/chrome/browser/download/download_request_limiter.cc |
+++ b/chrome/browser/download/download_request_limiter.cc |
@@ -110,14 +110,12 @@ void DownloadRequestLimiter::TabDownloadState::DidGetUserGesture() { |
} |
} |
-void DownloadRequestLimiter::TabDownloadState::WebContentsDestroyed( |
- content::WebContents* web_contents) { |
+void DownloadRequestLimiter::TabDownloadState::WebContentsDestroyed() { |
// Tab closed, no need to handle closing the dialog as it's owned by the |
// WebContents. |
NotifyCallbacks(false); |
- // Note that web_contents() is NULL at this point. |
- host_->Remove(this, web_contents); |
+ host_->Remove(this, web_contents()); |
// WARNING: We've been deleted. |
} |