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

Unified Diff: chrome/browser/ui/extensions/extension_message_bubble_factory.cc

Issue 2564973002: Add an infobar if a session is being controlled by an automated test. (Closed)
Patch Set: tweak wording, temporarily re-introduce load-component-extension Created 3 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/extensions/extension_message_bubble_factory.cc
diff --git a/chrome/browser/ui/extensions/extension_message_bubble_factory.cc b/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
index ddbfadf60e28dcca2f43f6d58079547727e2420d..838b02941bd817e93d0cce1604c895ea06a179cb 100644
--- a/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
+++ b/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/startup/startup_browser_creator.h"
#include "chrome/common/channel_info.h"
#include "components/version_info/version_info.h"
+#include "content/public/common/content_switches.h"
#include "extensions/common/feature_switch.h"
namespace {
@@ -89,6 +90,10 @@ bool EnableDevModeBubble() {
return true;
#endif
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kEnableChromeDriver))
+ return false;
Devlin 2017/02/01 23:05:00 On Windows beta and stable, we've already returned
samuong 2017/02/04 00:11:03 Done.
+
return g_override_for_testing ==
ExtensionMessageBubbleFactory::OVERRIDE_ENABLED ||
IsExperimentEnabled(kEnableDevModeWarningExperimentName);

Powered by Google App Engine
This is Rietveld 408576698