From 13ecb04b3a06a7e84c95a6b7c99f64529aa03b61 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 4 Aug 2010 19:40:42 +0000 Subject: 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 --- chrome/common/common_glue.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/common/common_glue.cc') 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))); -- cgit v1.1