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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 } | 1113 } |
1110 | 1114 |
1111 void ExistingUserController::SendAccessibilityAlert( | 1115 void ExistingUserController::SendAccessibilityAlert( |
1112 const std::string& alert_text) { | 1116 const std::string& alert_text) { |
1113 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); | 1117 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); |
1114 SendControlAccessibilityNotification( | 1118 SendControlAccessibilityNotification( |
1115 ui::AX_EVENT_VALUE_CHANGED, &event); | 1119 ui::AX_EVENT_VALUE_CHANGED, &event); |
1116 } | 1120 } |
1117 | 1121 |
1118 } // namespace chromeos | 1122 } // namespace chromeos |
OLD | NEW |