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