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

Unified Diff: chrome/test/unit/chrome_test_suite.h

Issue 373013: Use GetSwitchValueASCII. (Closed)
Patch Set: Created 11 years, 1 month 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/logging_chrome.cc ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/unit/chrome_test_suite.h
diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h
index 178b62ac752c2c9941567bf94c9fc9d0b64cf7ca..bd05e0d71eb3179d01102df398f78394f78fd22c 100644
--- a/chrome/test/unit/chrome_test_suite.h
+++ b/chrome/test/unit/chrome_test_suite.h
@@ -86,9 +86,9 @@ class ChromeTestSuite : public TestSuite {
// user data directory that lives alongside the current app.
// NOTE: The user data directory will be erased before each UI test that
// uses it, in order to ensure consistency.
- FilePath user_data_dir = FilePath::FromWStringHack(
- CommandLine::ForCurrentProcess()->GetSwitchValue(
- switches::kUserDataDir));
+ FilePath user_data_dir =
+ CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ switches::kUserDataDir);
if (user_data_dir.empty() &&
file_util::CreateNewTempDirectory(FILE_PATH_LITERAL("chrome_test_"),
&user_data_dir)) {
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698