diff options
Diffstat (limited to 'chrome/browser/ui/startup/bad_flags_prompt.cc')
-rw-r--r-- | chrome/browser/ui/startup/bad_flags_prompt.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/ui/startup/bad_flags_prompt.cc b/chrome/browser/ui/startup/bad_flags_prompt.cc index 64b758d..230956e 100644 --- a/chrome/browser/ui/startup/bad_flags_prompt.cc +++ b/chrome/browser/ui/startup/bad_flags_prompt.cc @@ -43,15 +43,11 @@ void ShowBadFlagsPrompt(Browser* browser) { 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); } } |