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

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

Issue 2722913002: [chromedriver] Load automation extension using --disable-extensions-except for M57+. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome_launcher.cc
diff --git a/chrome/test/chromedriver/chrome_launcher.cc b/chrome/test/chromedriver/chrome_launcher.cc
index 224d609bc1457911310a9f264669dbc677c63ad6..567637e8b6466ca68c2d386376f7008012edd8ed 100644
--- a/chrome/test/chromedriver/chrome_launcher.cc
+++ b/chrome/test/chromedriver/chrome_launcher.cc
@@ -783,8 +783,12 @@ Status ProcessExtensions(const std::vector<std::string>& extensions,
automation_extension.value());
#else
if (switches->HasSwitch("disable-extensions")) {
+ // For Chrome 56 and earlier:
UpdateExtensionSwitch(switches, "load-component-extension",
automation_extension.value());
+ // For Chrome 57 and later:
+ UpdateExtensionSwitch(switches, "disable-extensions-except",
+ automation_extension.value());
} else {
extension_paths.push_back(automation_extension.value());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698