Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: chrome/browser/ui/startup/

Issue 2564973002: Add an infobar if a session is being controlled by an automated test. (Closed)
Patch Set: change wording of infobar message to match suggestion from ux team Created 3 years, 10 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/
diff --git a/chrome/browser/ui/startup/ b/chrome/browser/ui/startup/
index 6ae4c738b143df6d62bb540fb52bab5f830c28c8..9170ef883391fd1d39b43926a52314e7940c1f0a 100644
--- a/chrome/browser/ui/startup/
+++ b/chrome/browser/ui/startup/
@@ -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"
@@ -807,11 +808,15 @@ void StartupBrowserCreatorImpl::AddInfoBarsIfNecessary(
+ if (command_line_.HasSwitch(switches::kEnableChromeDriver))
pfeldman 2017/02/08 18:35:36 ditto
+ ChromeDriverInfoBarDelegate::CreateAndShow(browser);
// 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)) {

Powered by Google App Engine
This is Rietveld 408576698