Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 228553002: Preference dis/allowing supervised users creation is now available as owner setting, not only as de… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test-specific logic added: check for BrowserPolicyConnector existence used. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698