summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_request_limiter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/download_request_limiter.cc')
-rw-r--r--chrome/browser/download/download_request_limiter.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
index ea9c73f..011f2c1 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -6,6 +6,7 @@
#include "base/stl_util.h"
#include "chrome/browser/download/download_request_infobar_delegate.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "content/browser/browser_thread.h"
@@ -76,7 +77,7 @@ void DownloadRequestLimiter::TabDownloadState::PromptUserForDownload(
infobar_ = new DownloadRequestInfoBarDelegate(tab, this);
TabContentsWrapper* wrapper =
TabContentsWrapper::GetCurrentWrapperForContents(tab);
- wrapper->AddInfoBar(infobar_);
+ wrapper->infobar_tab_helper()->AddInfoBar(infobar_);
}
}