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

Unified Diff: chrome/test/chromedriver/capabilities.cc

Issue 2785413002: [chromedriver] Introduce chromeOptions.useAutomationExtension. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/test/chromedriver/capabilities.h ('k') | chrome/test/chromedriver/chrome_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/capabilities.cc
diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
index 240318bf0702dcaeef7764405dee8df676876cb2..494411fc3dccb86ca25490a1810fab7aecfc3f0e 100644
--- a/chrome/test/chromedriver/capabilities.cc
+++ b/chrome/test/chromedriver/capabilities.cc
@@ -474,6 +474,8 @@ Status ParseChromeOptions(
base::Bind(&ParseString, &capabilities->minidump_path);
parser_map["mobileEmulation"] = base::Bind(&ParseMobileEmulation);
parser_map["prefs"] = base::Bind(&ParseDict, &capabilities->prefs);
+ parser_map["useAutomationExtension"] =
+ base::Bind(&ParseBoolean, &capabilities->use_automation_extension);
}
for (base::DictionaryValue::Iterator it(*chrome_options); !it.IsAtEnd();
@@ -614,7 +616,8 @@ Capabilities::Capabilities()
detach(false),
force_devtools_screenshot(true),
page_load_strategy(PageLoadStrategy::kNormal),
- network_emulation_enabled(false) {}
+ network_emulation_enabled(false),
+ use_automation_extension(true) {}
Capabilities::~Capabilities() {}
« no previous file with comments | « chrome/test/chromedriver/capabilities.h ('k') | chrome/test/chromedriver/chrome_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698