Index: chrome/test/chromedriver/chrome_launcher.cc |
diff --git a/chrome/test/chromedriver/chrome_launcher.cc b/chrome/test/chromedriver/chrome_launcher.cc |
index c9b0e4905498fa990e784c7fac4fc5c350f153d0..202c6fdaa49b685b882eeaf112acd3e4f4c4dec9 100644 |
--- a/chrome/test/chromedriver/chrome_launcher.cc |
+++ b/chrome/test/chromedriver/chrome_launcher.cc |
@@ -227,13 +227,8 @@ Status LaunchDesktopChrome( |
base::LaunchOptions options; |
#if !defined(OS_WIN) |
- base::EnvironmentVector environ; |
- if (!capabilities.log_path.empty()) { |
- environ.push_back( |
- base::EnvironmentVector::value_type("CHROME_LOG_FILE", |
- capabilities.log_path)); |
- options.environ = &environ; |
- } |
+ if (!capabilities.log_path.empty()) |
+ options.environ["CHROME_LOG_FILE"] = capabilities.log_path; |
if (capabilities.detach) |
options.new_process_group = true; |
#endif |