| Index: chrome/app/chrome_main.cc
|
| diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
|
| index e19f5501df03213dc6a408a1fadd7f815046f8d4..86d26978a393ec3bbca95cccec1ce74e70cdbad0 100644
|
| --- a/chrome/app/chrome_main.cc
|
| +++ b/chrome/app/chrome_main.cc
|
| @@ -846,10 +846,13 @@ int ChromeMain(int argc, char** argv) {
|
| // 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
|
| + // the --lang flag to pass the value of the PrefService in here. Maybe this
|
| // value could be passed in a different way.
|
| - ResourceBundle::InitSharedInstance(
|
| - command_line.GetSwitchValueASCII(switches::kLang));
|
| + const std::string locale =
|
| + command_line.GetSwitchValueASCII(switches::kLang);
|
| + const std::string loaded_locale =
|
| + ResourceBundle::InitSharedInstance(locale);
|
| + CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale;
|
|
|
| #if defined(OS_MACOSX)
|
| // Update the process name (need resources to get the strings, so
|
|
|