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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 2809058: Add application locale policy. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 5 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 | « app/l10n_util.cc ('k') | chrome/app/policy/windows/adm/en-US/chrome.adm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_dll_main.cc
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
old mode 100644
new mode 100755
index 9e3feb89cf1aa3da688b0fb53041b281b84863d9..03dbac640baf2f95b8e6c45b1283e994562ea115
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -718,7 +718,14 @@ int ChromeMain(int argc, char** argv) {
// browser process as a command line flag.
DCHECK(parsed_command_line.HasSwitch(switches::kLang) ||
process_type == switches::kZygoteProcess);
- ResourceBundle::InitSharedInstance(std::wstring());
+
+ // TODO(markusheintz): The command line flag --lang is actually processed
+ // by the CommandLinePrefStore, and made available through the PrefService
+ // via the preference prefs::kApplicationLocale. The browser process uses
+ // the --lang flag to passe the value of the PrefService in here. Maybe this
+ // value could be passed in a different way.
+ ResourceBundle::InitSharedInstance(
+ parsed_command_line.GetSwitchValue(switches::kLang));
#if defined(OS_MACOSX)
// Update the process name (need resources to get the strings, so
« no previous file with comments | « app/l10n_util.cc ('k') | chrome/app/policy/windows/adm/en-US/chrome.adm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698