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/app/chrome_dll_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/app') diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 8d62ddb..c075d88 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -495,8 +495,8 @@ int ChromeMain(int argc, char** argv) { #endif // Notice a user data directory override if any - const FilePath user_data_dir = FilePath::FromWStringHack( - parsed_command_line.GetSwitchValue(switches::kUserDataDir)); + const FilePath user_data_dir = + parsed_command_line.GetSwitchValuePath(switches::kUserDataDir); if (!user_data_dir.empty()) CHECK(PathService::Override(chrome::DIR_USER_DATA, user_data_dir)); -- cgit v1.1