| 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());
|
| }
|
|
|