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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.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 | « chrome/browser/browser_main_mac.mm ('k') | chrome/browser/chromeos/login/language_switch_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/candidate_window.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
old mode 100644
new mode 100755
index 17c9676ea1f01a1c3e9ff41eeaa3dee77597d60c..9b9ee5b3ab9d4eafe81b159b295321c3b4b0520a
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1045,6 +1045,13 @@ int main(int argc, char** argv) {
base::EnableTerminationOnHeapCorruption();
app::RegisterPathProvider();
CommandLine::Init(argc, argv);
+ // TODO(markusheintz): The command line switch --Lang is now processed
+ // by the CommandLinePrefStore and mapped to the preference
+ // prefs::kApplicationLocale. This preferences can be read through the
+ // PrefService. l10n_util::GetApplicationLocale() which is called by the
+ // ResourceBundle code now ignores the --Lang flag.
+ // In order to support the --Lang flag here the preference
+ // prefs::kApplicationLocale must be read and passed instead of L"en-US".
ResourceBundle::InitSharedInstance(L"en-US");
// Write logs to a file for debugging, if --logtofile=FILE_NAME is given.
« no previous file with comments | « chrome/browser/browser_main_mac.mm ('k') | chrome/browser/chromeos/login/language_switch_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698