Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8382)

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 126223: Replace std:;wstring with std::string in locale-name related APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugin_service.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/browser_render_process_host.cc
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 19124)
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
@@ -307,8 +307,8 @@
}
// Pass on the browser locale.
- const std::wstring locale = g_browser_process->GetApplicationLocale();
- cmd_line.AppendSwitchWithValue(switches::kLang, locale);
+ const std::string locale = g_browser_process->GetApplicationLocale();
+ cmd_line.AppendSwitchWithValue(switches::kLang, ASCIIToWide(locale));
// If we run a FieldTrial that we want to pass to the renderer, this is where
// the SINGULAR trial name and value should be specified. Note that only one
« no previous file with comments | « chrome/browser/plugin_service.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698