Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1114)

Unified Diff: chrome/browser/download/download_request_limiter.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ea9c73ff9b2a34a542771c2714ff2f02e93d1553..011f2c18c4ca150bbc622fc19ccf3bd9c31ad40d 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 =
Peter Kasting 2011/08/31 18:47:32 Nit: Just collapse these two lines together
TabContentsWrapper::GetCurrentWrapperForContents(tab);
- wrapper->AddInfoBar(infobar_);
+ wrapper->infobar_tab_helper()->AddInfoBar(infobar_);
}
}

Powered by Google App Engine
This is Rietveld 408576698