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

Unified Diff: chrome/test/automated_ui_tests/automated_ui_tests.cc

Issue 375016: Use GetSwitchValuePath. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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/plugin/plugin_thread.cc ('k') | chrome/test/memory_test/memory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automated_ui_tests/automated_ui_tests.cc
===================================================================
--- chrome/test/automated_ui_tests/automated_ui_tests.cc (revision 31829)
+++ chrome/test/automated_ui_tests/automated_ui_tests.cc (working copy)
@@ -73,8 +73,7 @@
FilePath GetInputFilePath() {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
if (parsed_command_line.HasSwitch(kInputFilePathSwitch)) {
- return FilePath::FromWStringHack(
- parsed_command_line.GetSwitchValue(kInputFilePathSwitch));
+ return parsed_command_line.GetSwitchValuePath(kInputFilePathSwitch);
} else {
return FilePath(kDefaultInputFilePath);
}
@@ -83,8 +82,7 @@
FilePath GetOutputFilePath() {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
if (parsed_command_line.HasSwitch(kOutputFilePathSwitch)) {
- return FilePath::FromWStringHack(
- parsed_command_line.GetSwitchValue(kOutputFilePathSwitch));
+ return parsed_command_line.GetSwitchValuePath(kOutputFilePathSwitch);
} else {
return FilePath(kDefaultOutputFilePath);
}
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/test/memory_test/memory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698