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 |