diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:40:42 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:40:42 +0000 |
commit | 13ecb04b3a06a7e84c95a6b7c99f64529aa03b61 (patch) | |
tree | 99959aee149a43a0213d14dc448e8c3e1b831733 /chrome/common/common_glue.cc | |
parent | 698f7f43984b1acbc74b0a64fd2205a3ff4efe07 (diff) | |
download | chromium_src-13ecb04b3a06a7e84c95a6b7c99f64529aa03b61.zip chromium_src-13ecb04b3a06a7e84c95a6b7c99f64529aa03b61.tar.gz chromium_src-13ecb04b3a06a7e84c95a6b7c99f64529aa03b61.tar.bz2 |
Remove wstring-ness from some more locale variables.
Review URL: http://codereview.chromium.org/3043055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/common_glue.cc')
-rw-r--r-- | chrome/common/common_glue.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/common_glue.cc b/chrome/common/common_glue.cc index 95417ab..71312bb 100644 --- a/chrome/common/common_glue.cc +++ b/chrome/common/common_glue.cc @@ -29,13 +29,13 @@ bool IsPluginRunningInRendererProcess() { return !IsPluginProcess(); } -std::wstring GetWebKitLocale() { +std::string GetWebKitLocale() { // The browser process should have passed the locale to the renderer via the // --lang command line flag. In single process mode, this will return the // wrong value. TODO(tc): Fix this for single process mode. const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); - const std::wstring& lang = - parsed_command_line.GetSwitchValue(switches::kLang); + const std::string& lang = + parsed_command_line.GetSwitchValueASCII(switches::kLang); DCHECK(!lang.empty() || (!parsed_command_line.HasSwitch(switches::kRendererProcess) && !parsed_command_line.HasSwitch(switches::kPluginProcess))); |