| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 base::Bind(&ExistingUserController::DeviceSettingsChanged, | 154 base::Bind(&ExistingUserController::DeviceSettingsChanged, |
| 155 base::Unretained(this))); | 155 base::Unretained(this))); |
| 156 allow_new_user_subscription_ = cros_settings_->AddSettingsObserver( | 156 allow_new_user_subscription_ = cros_settings_->AddSettingsObserver( |
| 157 kAccountsPrefAllowNewUser, | 157 kAccountsPrefAllowNewUser, |
| 158 base::Bind(&ExistingUserController::DeviceSettingsChanged, | 158 base::Bind(&ExistingUserController::DeviceSettingsChanged, |
| 159 base::Unretained(this))); | 159 base::Unretained(this))); |
| 160 allow_guest_subscription_ = cros_settings_->AddSettingsObserver( | 160 allow_guest_subscription_ = cros_settings_->AddSettingsObserver( |
| 161 kAccountsPrefAllowGuest, | 161 kAccountsPrefAllowGuest, |
| 162 base::Bind(&ExistingUserController::DeviceSettingsChanged, | 162 base::Bind(&ExistingUserController::DeviceSettingsChanged, |
| 163 base::Unretained(this))); | 163 base::Unretained(this))); |
| 164 allow_supervised_user_subscription_ = cros_settings_->AddSettingsObserver( |
| 165 kAccountsPrefSupervisedUsersEnabled, |
| 166 base::Bind(&ExistingUserController::DeviceSettingsChanged, |
| 167 base::Unretained(this))); |
| 164 users_subscription_ = cros_settings_->AddSettingsObserver( | 168 users_subscription_ = cros_settings_->AddSettingsObserver( |
| 165 kAccountsPrefUsers, | 169 kAccountsPrefUsers, |
| 166 base::Bind(&ExistingUserController::DeviceSettingsChanged, | 170 base::Bind(&ExistingUserController::DeviceSettingsChanged, |
| 167 base::Unretained(this))); | 171 base::Unretained(this))); |
| 168 local_account_auto_login_id_subscription_ = | 172 local_account_auto_login_id_subscription_ = |
| 169 cros_settings_->AddSettingsObserver( | 173 cros_settings_->AddSettingsObserver( |
| 170 kAccountsPrefDeviceLocalAccountAutoLoginId, | 174 kAccountsPrefDeviceLocalAccountAutoLoginId, |
| 171 base::Bind(&ExistingUserController::ConfigurePublicSessionAutoLogin, | 175 base::Bind(&ExistingUserController::ConfigurePublicSessionAutoLogin, |
| 172 base::Unretained(this))); | 176 base::Unretained(this))); |
| 173 local_account_auto_login_delay_subscription_ = | 177 local_account_auto_login_delay_subscription_ = |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 } | 1122 } |
| 1119 | 1123 |
| 1120 void ExistingUserController::SendAccessibilityAlert( | 1124 void ExistingUserController::SendAccessibilityAlert( |
| 1121 const std::string& alert_text) { | 1125 const std::string& alert_text) { |
| 1122 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); | 1126 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); |
| 1123 SendControlAccessibilityNotification( | 1127 SendControlAccessibilityNotification( |
| 1124 ui::AX_EVENT_VALUE_CHANGED, &event); | 1128 ui::AX_EVENT_VALUE_CHANGED, &event); |
| 1125 } | 1129 } |
| 1126 | 1130 |
| 1127 } // namespace chromeos | 1131 } // namespace chromeos |
| OLD | NEW |