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

Unified Diff: chrome/browser/ui/startup/bad_flags_prompt.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 5 years 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
diff --git a/chrome/browser/ui/startup/bad_flags_prompt.cc b/chrome/browser/ui/startup/bad_flags_prompt.cc
index d1f4c53a947d9d76e60415531760cb95dfeabb69..158802947cca1b07f1c3786b0e044a7f17432b9f 100644
--- a/chrome/browser/ui/startup/bad_flags_prompt.cc
+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc
@@ -18,6 +18,7 @@
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/autofill/core/common/autofill_switches.h"
+#include "components/infobars/core/infobar_delegate.h"
#include "components/infobars/core/simple_alert_infobar_delegate.h"
#include "components/invalidation/impl/invalidation_switches.h"
#include "components/nacl/common/nacl_switches.h"
@@ -100,6 +101,7 @@ void ShowBadFlagsPrompt(Browser* browser) {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(*flag)) {
SimpleAlertInfoBarDelegate::Create(
InfoBarService::FromWebContents(web_contents),
+ infobars::InfoBarDelegate::BAD_FLAGS_PROMPT,
infobars::InfoBarDelegate::kNoIconID,
gfx::VectorIconId::VECTOR_ICON_NONE,
l10n_util::GetStringFUTF16(
« no previous file with comments | « chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.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