diff options
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))); |