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

Unified Diff: chrome/browser/ui/auto_login_prompter.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
« no previous file with comments | « chrome/browser/ui/auto_login_info_bar_delegate.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/auto_login_prompter.cc
===================================================================
--- chrome/browser/ui/auto_login_prompter.cc (revision 175396)
+++ chrome/browser/ui/auto_login_prompter.cc (working copy)
@@ -178,10 +178,8 @@
InfoBarService* infobar_service =
InfoBarService::FromWebContents(web_contents_);
// |infobar_service| is NULL for WebContents hosted in WebDialog.
- if (infobar_service) {
- infobar_service->AddInfoBar(
- new AutoLoginInfoBarDelegate(infobar_service, params_));
- }
+ if (infobar_service)
+ AutoLoginInfoBarDelegate::Create(infobar_service, params_);
}
// Either we couldn't add the infobar, we added the infobar, or the tab
// contents was destroyed before the navigation completed. In any case
« no previous file with comments | « chrome/browser/ui/auto_login_info_bar_delegate.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698