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

Unified Diff: chrome/test/base/test_launcher_utils.cc

Issue 1996863002: media: Use bundled Widevine CDM in encrypted media browser tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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) {
« chrome/test/base/test_launcher_utils.h ('K') | « chrome/test/base/test_launcher_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698