From 5d39e314de21a384eaa226d4875b6a6e8e1bea17 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 17 Dec 2009 05:54:10 +0000 Subject: Use GetSwitchValueASCII, so we don't use the deprecated versions. Patch from Thiago Farina . Review URL: http://codereview.chromium.org/498002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34811 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/profile.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'chrome/browser/profile.cc') diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 3f5deee..111029b 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -680,9 +680,7 @@ void ProfileImpl::InitExtensions() { // Load any extensions specified with --load-extension. if (command_line->HasSwitch(switches::kLoadExtension)) { - std::wstring path_string = - command_line->GetSwitchValue(switches::kLoadExtension); - FilePath path = FilePath::FromWStringHack(path_string); + FilePath path = command_line->GetSwitchValuePath(switches::kLoadExtension); extensions_service_->LoadExtension(path); // Tell UserScriptMaser to watch this extension's directory for changes so -- cgit v1.1