| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/browser_process_platform_part.h" | 25 #include "chrome/browser/browser_process_platform_part.h" |
| 26 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
| 27 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 27 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 28 #include "chrome/browser/chromeos/boot_times_loader.h" | 28 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 29 #include "chrome/browser/chromeos/customization_document.h" | 29 #include "chrome/browser/chromeos/customization_document.h" |
| 30 #include "chrome/browser/chromeos/first_run/first_run.h" | 30 #include "chrome/browser/chromeos/first_run/first_run.h" |
| 31 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 31 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 32 #include "chrome/browser/chromeos/login/helper.h" | 32 #include "chrome/browser/chromeos/login/helper.h" |
| 33 #include "chrome/browser/chromeos/login/login_utils.h" | 33 #include "chrome/browser/chromeos/login/login_utils.h" |
| 34 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 34 #include "chrome/browser/chromeos/login/startup_utils.h" | 35 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 35 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 36 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| 36 #include "chrome/browser/chromeos/login/user_flow.h" | 37 #include "chrome/browser/chromeos/login/user_flow.h" |
| 37 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 38 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 38 #include "chrome/browser/chromeos/login/wizard_controller.h" | 39 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 39 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 40 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 40 #include "chrome/browser/chromeos/policy/device_local_account.h" | 41 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 41 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 42 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
| 42 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 43 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 43 #include "chrome/browser/chromeos/settings/cros_settings.h" | 44 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 } | 918 } |
| 918 | 919 |
| 919 void ExistingUserController::OnOffTheRecordAuthSuccess() { | 920 void ExistingUserController::OnOffTheRecordAuthSuccess() { |
| 920 is_login_in_progress_ = false; | 921 is_login_in_progress_ = false; |
| 921 offline_failed_ = false; | 922 offline_failed_ = false; |
| 922 | 923 |
| 923 // Mark the device as registered., i.e. the second part of OOBE as completed. | 924 // Mark the device as registered., i.e. the second part of OOBE as completed. |
| 924 if (!StartupUtils::IsDeviceRegistered()) | 925 if (!StartupUtils::IsDeviceRegistered()) |
| 925 StartupUtils::MarkDeviceRegistered(base::Closure()); | 926 StartupUtils::MarkDeviceRegistered(base::Closure()); |
| 926 | 927 |
| 927 LoginUtils::Get()->CompleteOffTheRecordLogin(guest_mode_url_); | 928 UserSessionManager::GetInstance()->CompleteGuestSessionLogin(guest_mode_url_); |
| 928 | 929 |
| 929 if (auth_status_consumer_) | 930 if (auth_status_consumer_) |
| 930 auth_status_consumer_->OnOffTheRecordAuthSuccess(); | 931 auth_status_consumer_->OnOffTheRecordAuthSuccess(); |
| 931 } | 932 } |
| 932 | 933 |
| 933 void ExistingUserController::OnPasswordChangeDetected() { | 934 void ExistingUserController::OnPasswordChangeDetected() { |
| 934 is_login_in_progress_ = false; | 935 is_login_in_progress_ = false; |
| 935 offline_failed_ = false; | 936 offline_failed_ = false; |
| 936 | 937 |
| 937 // Must not proceed without signature verification. | 938 // Must not proceed without signature verification. |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 // Only one instance of LoginPerformer should exist at a time. | 1255 // Only one instance of LoginPerformer should exist at a time. |
| 1255 login_performer_.reset(NULL); | 1256 login_performer_.reset(NULL); |
| 1256 login_performer_.reset(new LoginPerformer(this)); | 1257 login_performer_.reset(new LoginPerformer(this)); |
| 1257 is_login_in_progress_ = true; | 1258 is_login_in_progress_ = true; |
| 1258 login_performer_->LoginAsPublicSession(user_context); | 1259 login_performer_->LoginAsPublicSession(user_context); |
| 1259 SendAccessibilityAlert( | 1260 SendAccessibilityAlert( |
| 1260 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); | 1261 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); |
| 1261 } | 1262 } |
| 1262 | 1263 |
| 1263 } // namespace chromeos | 1264 } // namespace chromeos |
| OLD | NEW |