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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 5939002: Error handling added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return code CHECK fixed Created 10 years 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
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 50aa4b2b33545fb7644083d12b828514a38de4bb..ff87527fab939c99d5a6e3ab21a865ae3d279636 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -1007,7 +1007,8 @@ void ShowLoginWizard(const std::string& first_screen_name,
locale = controller->GetCustomization()->initial_locale();
VLOG(1) << "Initial locale: " << locale;
if (!locale.empty()) {
- ResourceBundle::ReloadSharedInstance(locale);
+ const std::string res = ResourceBundle::ReloadSharedInstance(locale);
Peter Kasting 2010/12/21 18:35:58 Nit: Same nits
glotov 2010/12/21 20:33:34 Done.
+ CHECK(!res.empty()) << "Locale could not be found for " << locale;
}
}
}

Powered by Google App Engine
This is Rietveld 408576698