summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 05:54:10 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 05:54:10 +0000
commit5d39e314de21a384eaa226d4875b6a6e8e1bea17 (patch)
treeff3e9de865f592de344be6fa98fc96939b76a240 /chrome/browser/profile.cc
parentabac839b4a359636d6168d34d94ac6d043b6550b (diff)
downloadchromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.zip
chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.gz
chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.bz2
Use GetSwitchValueASCII, so we don't use the deprecated versions.
Patch from Thiago Farina <thiago.farina@gmail.com>. Review URL: http://codereview.chromium.org/498002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc4
1 files changed, 1 insertions, 3 deletions
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