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

Unified Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.cc

Issue 686863002: Revert "Revert of Revert of Revert of ChromeOS NetworkScreenHandler should not call CheckAndResolve… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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/ui/login_display_host_impl.cc
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
index 3f792e351ca22f542738e6e966b0ee1ba47625b8..3c9b9000966fe3db5dea25a72267b3e67379e75b 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -200,11 +200,10 @@ struct ShowLoginWizardSwitchLanguageCallbackData {
void OnLanguageSwitchedCallback(
scoped_ptr<ShowLoginWizardSwitchLanguageCallbackData> self,
- const std::string& locale,
- const std::string& loaded_locale,
- const bool success) {
- if (!success)
- LOG(WARNING) << "Locale could not be found for '" << locale << "'";
+ const chromeos::locale_util::LanguageSwitchResult& result) {
+ if (!result.success)
+ LOG(WARNING) << "Locale could not be found for '" << result.requested_locale
+ << "'";
ShowLoginWizardFinish(
self->first_screen_name, self->startup_manifest, self->display_host);
@@ -1295,13 +1294,12 @@ void ShowLoginWizard(const std::string& first_screen_name) {
new ShowLoginWizardSwitchLanguageCallbackData(
first_screen_name, startup_manifest, display_host));
- scoped_ptr<locale_util::SwitchLanguageCallback> callback(
- new locale_util::SwitchLanguageCallback(
- base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass()))));
+ locale_util::SwitchLanguageCallback callback(
+ base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass())));
// Load locale keyboards here. Hardware layout would be automatically enabled.
locale_util::SwitchLanguage(
- locale, true, true /* login_layouts_only */, callback.Pass());
+ locale, true, true /* login_layouts_only */, callback);
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698