| Index: chrome/test/base/test_launcher_utils.cc
|
| diff --git a/chrome/test/base/test_launcher_utils.cc b/chrome/test/base/test_launcher_utils.cc
|
| index 61fb15dd81fbd0930a2f36c8273af1a80a06060f..0d3543423c7931734a741195dd5beaa4d49db813 100644
|
| --- a/chrome/test/base/test_launcher_utils.cc
|
| +++ b/chrome/test/base/test_launcher_utils.cc
|
| @@ -23,7 +23,8 @@
|
|
|
| namespace test_launcher_utils {
|
|
|
| -void PrepareBrowserCommandLineForTests(base::CommandLine* command_line) {
|
| +void PrepareBrowserCommandLineForTests(base::CommandLine* command_line,
|
| + bool enable_component_update) {
|
| // Turn off preconnects because they break the brittle python webserver;
|
| // see http://crbug.com/60035.
|
| command_line->AppendSwitch(switches::kDisablePreconnect);
|
| @@ -69,7 +70,8 @@ void PrepareBrowserCommandLineForTests(base::CommandLine* command_line) {
|
| command_line->AppendSwitch(os_crypt::switches::kUseMockKeychain);
|
| #endif
|
|
|
| - command_line->AppendSwitch(switches::kDisableComponentUpdate);
|
| + if (!enable_component_update)
|
| + command_line->AppendSwitch(switches::kDisableComponentUpdate);
|
| }
|
|
|
| bool OverrideUserDataDir(const base::FilePath& user_data_dir) {
|
|
|