diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
commit | 5d39e314de21a384eaa226d4875b6a6e8e1bea17 (patch) | |
tree | ff3e9de865f592de344be6fa98fc96939b76a240 /app/l10n_util.cc | |
parent | abac839b4a359636d6168d34d94ac6d043b6550b (diff) | |
download | chromium_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 'app/l10n_util.cc')
-rw-r--r-- | app/l10n_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc index e296a75..9a24cf9 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -447,8 +447,8 @@ std::string GetApplicationLocale(const std::wstring& pref_locale) { #if defined(OS_WIN) // First, check to see if there's a --lang flag. const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); - const std::string& lang_arg = WideToASCII( - parsed_command_line.GetSwitchValue(switches::kLang)); + const std::string& lang_arg = + parsed_command_line.GetSwitchValueASCII(switches::kLang); if (!lang_arg.empty()) candidates.push_back(lang_arg); |