Index: chrome/app/chrome_main.cc |
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc |
index e19f5501df03213dc6a408a1fadd7f815046f8d4..abbfadd9d1fc2fa615fec7562837aac68524f3f0 100644 |
--- a/chrome/app/chrome_main.cc |
+++ b/chrome/app/chrome_main.cc |
@@ -848,8 +848,9 @@ int ChromeMain(int argc, char** argv) { |
// 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( |
- command_line.GetSwitchValueASCII(switches::kLang)); |
+ std::string locale = command_line.GetSwitchValueASCII(switches::kLang); |
+ CHECK(ResourceBundle::InitSharedInstance(locale) == locale) |
Peter Kasting
2010/12/20 17:18:48
Never perform real work inside a CHECK or DCHECK.
glotov
2010/12/21 13:19:08
Done.
|
+ << "Locale could not be found for " << locale; |
#if defined(OS_MACOSX) |
// Update the process name (need resources to get the strings, so |