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

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: Unnecessary callback removed. Patch applied for failing tests. Created 6 years, 6 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/users/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698