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

Unified Diff: chrome/test/chromedriver/chrome_launcher.cc

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 4 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/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
« no previous file with comments | « chrome/browser/platform_util_linux.cc ('k') | chrome/utility/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698