Index: chrome/browser/chromeos/login/wizard_controller.cc |
=================================================================== |
--- chrome/browser/chromeos/login/wizard_controller.cc (revision 49913) |
+++ chrome/browser/chromeos/login/wizard_controller.cc (working copy) |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/chromeos/login/account_screen.h" |
#include "chrome/browser/chromeos/login/background_view.h" |
#include "chrome/browser/chromeos/login/existing_user_controller.h" |
+#include "chrome/browser/chromeos/login/language_switch_model.h" |
#include "chrome/browser/chromeos/login/login_screen.h" |
#include "chrome/browser/chromeos/login/login_utils.h" |
#include "chrome/browser/chromeos/login/network_screen.h" |
@@ -247,6 +248,14 @@ |
is_out_of_box_ = true; |
} |
+ // Switch to initial locale if specified by customization. |
+ if (customization_ != NULL) { |
+ std::string locale = customization_->initial_locale(); |
+ if (!locale.empty()) { |
+ chromeos::LanguageSwitchModel::SwitchLanguage(locale); |
+ } |
+ } |
+ |
ShowFirstScreen(first_screen_name); |
// This keeps the window from flashing at startup. |