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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
===================================================================
--- chrome/browser/download/download_request_limiter.cc (revision 175396)
+++ chrome/browser/download/download_request_limiter.cc (working copy)
@@ -106,8 +106,7 @@
Cancel();
return;
}
- infobar_ = new DownloadRequestInfoBarDelegate(infobar_service, this);
- infobar_service->AddInfoBar(infobar_);
+ DownloadRequestInfoBarDelegate::Create(infobar_service, this);
}
void DownloadRequestLimiter::TabDownloadState::Cancel() {

Powered by Google App Engine
This is Rietveld 408576698