Index: chrome/test/out_of_proc_test_runner.cc |
diff --git a/chrome/test/out_of_proc_test_runner.cc b/chrome/test/out_of_proc_test_runner.cc |
index 64ceb1611dfb88e86f01c36d135ec905a5d94898..a14a38a02d5a5c11a1feabfbe84737c78365f649 100644 |
--- a/chrome/test/out_of_proc_test_runner.cc |
+++ b/chrome/test/out_of_proc_test_runner.cc |
@@ -275,6 +275,13 @@ int RunTest(const std::string& test_name) { |
base::ProcessHandle process_handle; |
#if defined(OS_POSIX) |
+ const char* browser_wrapper = getenv("BROWSER_WRAPPER"); |
+ if (browser_wrapper) { |
+ new_cmd_line.PrependWrapper(browser_wrapper); |
+ VLOG(1) << "BROWSER_WRAPPER was set, prefixing command_line with " |
+ << browser_wrapper; |
+ } |
+ |
// On POSIX, we launch the test in a new process group with pgid equal to |
// its pid. Any child processes that the test may create will inherit the |
// same pgid. This way, if the test is abruptly terminated, we can clean up |