summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 21:45:17 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 21:45:17 +0000
commit9f308ae7b39912090955910e76753aa0823461e3 (patch)
tree1600f6c38f3113c692e372e34701eb39b3e518c9 /chrome/browser
parenta91d639d609db7e4c9ae2ccad3fe1039608c45ff (diff)
downloadchromium_src-9f308ae7b39912090955910e76753aa0823461e3.zip
chromium_src-9f308ae7b39912090955910e76753aa0823461e3.tar.gz
chromium_src-9f308ae7b39912090955910e76753aa0823461e3.tar.bz2
Use GetSwitchValuePath.
BUG=24672 TEST=unit_tests Patch by Thiago Farina <thiago.farina@gmail.com>. Review URL: http://codereview.chromium.org/375016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/browser_main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 81d8c7c..b61007a 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -452,8 +452,8 @@ int BrowserMain(const MainFunctionParams& parameters) {
// inherit and reset the user's setting.
if (!local_state_file_exists &&
parsed_command_line.HasSwitch(switches::kParentProfile)) {
- FilePath parent_profile = FilePath::FromWStringHack(
- parsed_command_line.GetSwitchValue(switches::kParentProfile));
+ FilePath parent_profile =
+ parsed_command_line.GetSwitchValuePath(switches::kParentProfile);
PrefService parent_local_state(parent_profile);
parent_local_state.RegisterStringPref(prefs::kApplicationLocale,
std::wstring());