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

Unified Diff: chrome/test/ui/ui_test.cc

Issue 93147: POSIX: don't spawn zombies. (Closed)
Patch Set: ... Created 11 years, 8 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
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 01eb35ac3d3acb3db7bc7b70242cbbe1d4405e09..54e3531f557041978bc21f64087da315fa231321 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -292,7 +292,18 @@ void UITest::LaunchBrowser(const CommandLine& arguments, bool clear_profile) {
if (!homepage_.empty())
command_line.AppendSwitchWithValue(switches::kHomePage,
homepage_);
- PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_);
+#if defined(OS_POSIX)
+ const char* alternative_userdir = getenv("CHROME_UI_TESTS_USER_DATA_DIR");
+#else
+ const FilePath::StringType::value_type* const alternative_userdir = NULL;
+#endif
+
+ if (alternative_userdir) {
+ user_data_dir_ = FilePath(alternative_userdir);
+ } else {
+ PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_);
+ }
+
if (!user_data_dir_.empty())
command_line.AppendSwitchWithValue(switches::kUserDataDir,
user_data_dir_.ToWStringHack());
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698