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

Unified Diff: chrome/browser/nacl_host/nacl_infobar.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/nacl_host/nacl_infobar.cc
===================================================================
--- chrome/browser/nacl_host/nacl_infobar.cc (revision 175396)
+++ chrome/browser/nacl_host/nacl_infobar.cc (working copy)
@@ -30,8 +30,8 @@
render_view_id);
WebContents* wc = WebContents::FromRenderViewHost(rvh);
InfoBarService* ibs = InfoBarService::FromWebContents(wc);
- ibs->AddInfoBar(new SimpleAlertInfoBarDelegate(ibs, NULL,
- l10n_util::GetStringUTF16(IDS_NACL_APP_MISSING_ARCH_MESSAGE), true));
+ SimpleAlertInfoBarDelegate::Create(ibs, NULL,
+ l10n_util::GetStringUTF16(IDS_NACL_APP_MISSING_ARCH_MESSAGE), true);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698