| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 5 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/common/wallpaper/wallpaper_controller.h" | 10 #include "ash/common/wallpaper/wallpaper_controller.h" |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 return new WizardController(this, oobe_ui); | 792 return new WizardController(this, oobe_ui); |
| 793 } | 793 } |
| 794 | 794 |
| 795 void LoginDisplayHostImpl::OnBrowserCreated() { | 795 void LoginDisplayHostImpl::OnBrowserCreated() { |
| 796 // Close lock window now so that the launched browser can receive focus. | 796 // Close lock window now so that the launched browser can receive focus. |
| 797 ResetLoginWindowAndView(); | 797 ResetLoginWindowAndView(); |
| 798 } | 798 } |
| 799 | 799 |
| 800 OobeUI* LoginDisplayHostImpl::GetOobeUI() const { | 800 OobeUI* LoginDisplayHostImpl::GetOobeUI() const { |
| 801 if (!login_view_) | 801 if (!login_view_) |
| 802 return NULL; | 802 return nullptr; |
| 803 return static_cast<OobeUI*>(login_view_->GetWebUI()->GetController()); | 803 return login_view_->GetOobeUI(); |
| 804 } | 804 } |
| 805 | 805 |
| 806 //////////////////////////////////////////////////////////////////////////////// | 806 //////////////////////////////////////////////////////////////////////////////// |
| 807 // LoginDisplayHostImpl, content:NotificationObserver: | 807 // LoginDisplayHostImpl, content:NotificationObserver: |
| 808 | 808 |
| 809 void LoginDisplayHostImpl::Observe( | 809 void LoginDisplayHostImpl::Observe( |
| 810 int type, | 810 int type, |
| 811 const content::NotificationSource& source, | 811 const content::NotificationSource& source, |
| 812 const content::NotificationDetails& details) { | 812 const content::NotificationDetails& details) { |
| 813 if (chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE == type || | 813 if (chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE == type || |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 | 1367 |
| 1368 locale_util::SwitchLanguageCallback callback( | 1368 locale_util::SwitchLanguageCallback callback( |
| 1369 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); | 1369 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); |
| 1370 | 1370 |
| 1371 // Load locale keyboards here. Hardware layout would be automatically enabled. | 1371 // Load locale keyboards here. Hardware layout would be automatically enabled. |
| 1372 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, | 1372 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, |
| 1373 callback, ProfileManager::GetActiveUserProfile()); | 1373 callback, ProfileManager::GetActiveUserProfile()); |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 } // namespace chromeos | 1376 } // namespace chromeos |
| OLD | NEW |