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

Unified Diff: chrome/browser/browser_main_mac.mm

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.cc ('k') | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main_mac.mm
diff --git a/chrome/browser/browser_main_mac.mm b/chrome/browser/browser_main_mac.mm
old mode 100644
new mode 100755
index eb7d1303434242ae30057a8d97b3a20901127f04..f0f0861697da81fc8d4d4b82a4481ea57cab9b86
--- a/chrome/browser/browser_main_mac.mm
+++ b/chrome/browser/browser_main_mac.mm
@@ -46,7 +46,10 @@ void WillInitializeMainMessageLoop(const MainFunctionParams& parameters) {
// Before we load the nib, we need to start up the resource bundle so we
// have the strings avaiable for localization.
- ResourceBundle::InitSharedInstance(std::wstring());
+ std::wstring pref_locale;
+ // TODO(markusheintz): Read preference pref::kApplicationLocale in order to
+ // enforce the application locale.
+ ResourceBundle::InitSharedInstance(pref_locale);
FilePath resources_pack_path;
PathService::Get(chrome::FILE_RESOURCES_PACK, &resources_pack_path);
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698