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

Side by Side Diff: chrome/browser/resources/md_user_manager/create_profile.js

Issue 2561243002: Hide supervised user creation from UserManager when force sign in is enabled. (Closed)
Patch Set: moe's comments Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 /** 5 /**
6 * @fileoverview 'create-profile' is a page that contains controls for creating 6 * @fileoverview 'create-profile' is a page that contains controls for creating
7 * a (optionally supervised) profile, including choosing a name, and an avatar. 7 * a (optionally supervised) profile, including choosing a name, and an avatar.
8 */ 8 */
9 9
10 /** @typedef {{url: string, label:string}} */ 10 /** @typedef {{url: string, label:string}} */
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 /** 131 /**
132 * True if the profile shortcuts feature is enabled. 132 * True if the profile shortcuts feature is enabled.
133 * @private 133 * @private
134 */ 134 */
135 isProfileShortcutsEnabled_: { 135 isProfileShortcutsEnabled_: {
136 type: Boolean, 136 type: Boolean,
137 value: function() { 137 value: function() {
138 return loadTimeData.getBoolean('profileShortcutsEnabled'); 138 return loadTimeData.getBoolean('profileShortcutsEnabled');
139 }, 139 },
140 readOnly: true 140 readOnly: true
141 },
142
143 /**
144 * True if the force sign in policy is enabled.
145 * @private {boolean}
146 */
147 isForceSigninEnabled_: {
148 type: Boolean,
149 value: function() {
150 return loadTimeData.getBoolean('isForceSigninEnabled');
151 },
141 } 152 }
142 }, 153 },
143 154
144 listeners: { 155 listeners: {
145 'tap': 'onTap_', 156 'tap': 'onTap_',
146 'importUserPopup.import': 'onImportUserPopupImport_' 157 'importUserPopup.import': 'onImportUserPopupImport_'
147 }, 158 },
148 159
149 /** @override */ 160 /** @override */
150 created: function() { 161 created: function() {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 * Computed binding that returns True if there are any signed-in users. 543 * Computed binding that returns True if there are any signed-in users.
533 * @param {!Array<!SignedInUser>} signedInUsers signed-in users. 544 * @param {!Array<!SignedInUser>} signedInUsers signed-in users.
534 * @return {boolean} 545 * @return {boolean}
535 * @private 546 * @private
536 */ 547 */
537 isSignedIn_: function(signedInUsers) { 548 isSignedIn_: function(signedInUsers) {
538 return signedInUsers.length > 0; 549 return signedInUsers.length > 0;
539 } 550 }
540 }); 551 });
541 }()); 552 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698