Chromium Code Reviews| Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc |
| diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
| index 1b5e7da057378d8b1f72c349beac791d670feeeb..eb225ef8ab3e6468eee0bfc42516797c0038e4d5 100644 |
| --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
| +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
| @@ -68,6 +68,7 @@ |
| #include "chrome/browser/ui/extensions/application_launch.h" |
| #include "chrome/browser/ui/session_crashed_bubble.h" |
| #include "chrome/browser/ui/startup/bad_flags_prompt.h" |
| +#include "chrome/browser/ui/startup/chromedriver_infobar_delegate.h" |
| #include "chrome/browser/ui/startup/default_browser_prompt.h" |
| #include "chrome/browser/ui/startup/google_api_keys_infobar_delegate.h" |
| #include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h" |
| @@ -800,11 +801,15 @@ void StartupBrowserCreatorImpl::AddInfoBarsIfNecessary( |
| SessionCrashedInfoBarDelegate::Create(browser); |
| } |
| + if (command_line_.HasSwitch(switches::kEnableChromeDriver)) |
| + ChromeDriverInfoBarDelegate::Create(browser); |
|
Devlin
2017/02/01 23:05:00
This is pretty high-level. I wonder if we could p
|
| + |
| // The below info bars are only added to the first profile which is launched. |
| // Other profiles might be restoring the browsing sessions asynchronously, |
| // so we cannot add the info bars to the focused tabs here. |
| if (is_process_startup == chrome::startup::IS_PROCESS_STARTUP && |
| - !command_line_.HasSwitch(switches::kTestType)) { |
| + !command_line_.HasSwitch(switches::kTestType) && |
| + !command_line_.HasSwitch(switches::kEnableChromeDriver)) { |
| chrome::ShowBadFlagsPrompt(browser); |
| GoogleApiKeysInfoBarDelegate::Create(InfoBarService::FromWebContents( |
| browser->tab_strip_model()->GetActiveWebContents())); |