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

Unified Diff: chrome/browser/ui/startup/bad_flags_prompt.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/ui/startup/bad_flags_prompt.cc
===================================================================
--- chrome/browser/ui/startup/bad_flags_prompt.cc (revision 175396)
+++ chrome/browser/ui/startup/bad_flags_prompt.cc (working copy)
@@ -43,15 +43,11 @@
content::WebContents* web_contents = chrome::GetActiveWebContents(browser);
if (!web_contents)
return;
- InfoBarService* infobar_service =
- InfoBarService::FromWebContents(web_contents);
- infobar_service->AddInfoBar(
- new SimpleAlertInfoBarDelegate(
- infobar_service, NULL,
- l10n_util::GetStringFUTF16(
- IDS_BAD_FLAGS_WARNING_MESSAGE,
- UTF8ToUTF16(std::string("--") + bad_flag)),
- false));
+ SimpleAlertInfoBarDelegate::Create(
+ InfoBarService::FromWebContents(web_contents), NULL,
+ l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE,
+ UTF8ToUTF16(std::string("--") + bad_flag)),
+ false);
}
}
« no previous file with comments | « chrome/browser/ui/startup/autolaunch_prompt_win.cc ('k') | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698