From 9f308ae7b39912090955910e76753aa0823461e3 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 16 Nov 2009 21:45:17 +0000 Subject: Use GetSwitchValuePath. BUG=24672 TEST=unit_tests Patch by Thiago Farina . Review URL: http://codereview.chromium.org/375016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32093 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/automated_ui_tests/automated_ui_tests.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chrome/test/automated_ui_tests') diff --git a/chrome/test/automated_ui_tests/automated_ui_tests.cc b/chrome/test/automated_ui_tests/automated_ui_tests.cc index b4c8c29..ae7df5d 100644 --- a/chrome/test/automated_ui_tests/automated_ui_tests.cc +++ b/chrome/test/automated_ui_tests/automated_ui_tests.cc @@ -73,8 +73,7 @@ void SilentRuntimeReportHandler(const std::string& str) { 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 GetInputFilePath() { 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); } -- cgit v1.1