Chromium Code Reviews| Index: chrome/browser/browser_main.cc |
| diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
| index 8958872415d194533730c89dfbe9c50dd47feab7..f44f3003f0721e872163e34cd85d5a8af553f5c3 100644 |
| --- a/chrome/browser/browser_main.cc |
| +++ b/chrome/browser/browser_main.cc |
| @@ -1150,8 +1150,9 @@ int BrowserMain(const MainFunctionParams& parameters) { |
| #else |
| // On a POSIX OS other than ChromeOS, the parameter that is passed to the |
| // method InitSharedInstance is ignored. |
| - std::string app_locale = ResourceBundle::InitSharedInstance( |
| - local_state->GetString(prefs::kApplicationLocale)); |
| + std::string locale = local_state->GetString(prefs::kApplicationLocale); |
| + std::string app_locale = ResourceBundle::InitSharedInstance(locale); |
| + CHECK(app_locale == locale) << "Locale could not be found for " << locale; |
|
Peter Kasting
2010/12/20 17:18:48
Nit: CHECK_EQ
glotov
2010/12/21 13:19:08
Done.
|
| g_browser_process->SetApplicationLocale(app_locale); |
| FilePath resources_pack_path; |