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..4ae6b71e9507f14fb5a7105ec869029c1f1d2921 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 { |
@@ -84,6 +85,10 @@ bool EnableDevModeBubble() { |
if (extensions::FeatureSwitch::force_dev_mode_highlighting()->IsEnabled()) |
return true; |
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
Devlin
2017/02/06 16:20:21
We should add a comment here like:
// If ChromeDri
samuong
2017/02/07 19:11:09
Done.
|
+ if (command_line->HasSwitch(switches::kEnableChromeDriver)) |
+ return false; |
+ |
#if defined(OS_WIN) |
if (chrome::GetChannel() >= version_info::Channel::BETA) |
return true; |