| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "base/trace_event/trace_event.h" | 30 #include "base/trace_event/trace_event.h" |
| 31 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
| 32 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 32 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
| 33 #include "chrome/browser/browser_shutdown.h" | 33 #include "chrome/browser/browser_shutdown.h" |
| 34 #include "chrome/browser/chrome_notification_types.h" | 34 #include "chrome/browser/chrome_notification_types.h" |
| 35 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 35 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 36 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 36 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 37 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" | 37 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" |
| 38 #include "chrome/browser/chromeos/login/hwid_checker.h" | 38 #include "chrome/browser/chromeos/login/hwid_checker.h" |
| 39 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 39 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 40 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" |
| 40 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" | 41 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" |
| 41 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" | 42 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" |
| 42 #include "chrome/browser/chromeos/login/reauth_stats.h" | 43 #include "chrome/browser/chromeos/login/reauth_stats.h" |
| 43 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" | 44 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" |
| 44 #include "chrome/browser/chromeos/login/screens/network_error.h" | 45 #include "chrome/browser/chromeos/login/screens/network_error.h" |
| 45 #include "chrome/browser/chromeos/login/startup_utils.h" | 46 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 46 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 47 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| 47 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 48 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
| 48 #include "chrome/browser/chromeos/login/ui/login_feedback.h" | 49 #include "chrome/browser/chromeos/login/ui/login_feedback.h" |
| 49 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" | 50 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 } | 1224 } |
| 1224 | 1225 |
| 1225 is_account_picker_showing_first_time_ = true; | 1226 is_account_picker_showing_first_time_ = true; |
| 1226 | 1227 |
| 1227 if (delegate_) | 1228 if (delegate_) |
| 1228 delegate_->OnSigninScreenReady(); | 1229 delegate_->OnSigninScreenReady(); |
| 1229 } | 1230 } |
| 1230 | 1231 |
| 1231 void SigninScreenHandler::HandleWallpaperReady() { | 1232 void SigninScreenHandler::HandleWallpaperReady() { |
| 1232 if (ScreenLocker::default_screen_locker()) { | 1233 if (ScreenLocker::default_screen_locker()) { |
| 1233 ScreenLocker::default_screen_locker()->delegate()-> | 1234 ScreenLocker::default_screen_locker() |
| 1234 OnLockBackgroundDisplayed(); | 1235 ->web_ui() |
| 1236 ->OnLockBackgroundDisplayed(); |
| 1235 } | 1237 } |
| 1236 } | 1238 } |
| 1237 | 1239 |
| 1238 void SigninScreenHandler::HandleSignOutUser() { | 1240 void SigninScreenHandler::HandleSignOutUser() { |
| 1239 if (delegate_) | 1241 if (delegate_) |
| 1240 delegate_->Signout(); | 1242 delegate_->Signout(); |
| 1241 } | 1243 } |
| 1242 | 1244 |
| 1243 void SigninScreenHandler::HandleOpenProxySettings() { | 1245 void SigninScreenHandler::HandleOpenProxySettings() { |
| 1244 LoginDisplayHost::default_host()->OpenProxySettings(); | 1246 LoginDisplayHost::default_host()->OpenProxySettings(); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 } | 1495 } |
| 1494 | 1496 |
| 1495 void SigninScreenHandler::OnFeedbackFinished() { | 1497 void SigninScreenHandler::OnFeedbackFinished() { |
| 1496 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); | 1498 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); |
| 1497 | 1499 |
| 1498 // Recreate user's cryptohome after the feedback is attempted. | 1500 // Recreate user's cryptohome after the feedback is attempted. |
| 1499 HandleResyncUserData(); | 1501 HandleResyncUserData(); |
| 1500 } | 1502 } |
| 1501 | 1503 |
| 1502 } // namespace chromeos | 1504 } // namespace chromeos |
| OLD | NEW |