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

Side by Side Diff: chrome/browser/resources/settings/people_page/users_page.js

Issue 2495933002: [MD settings][cros accounts] Updates the accounts page according to the specs (Closed)
Patch Set: Addressed comment Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 6 * @fileoverview
7 * 'settings-users-page' is the settings page for managing user accounts on 7 * 'settings-users-page' is the settings page for managing user accounts on
8 * the device. 8 * the device.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 openAddUserDialog_: function() { 59 openAddUserDialog_: function() {
60 this.$.addUserDialog.open(); 60 this.$.addUserDialog.open();
61 }, 61 },
62 62
63 /** 63 /**
64 * @param {boolean} isOwner 64 * @param {boolean} isOwner
65 * @param {boolean} isWhitelistManaged 65 * @param {boolean} isWhitelistManaged
66 * @private 66 * @private
67 * @return {boolean} 67 * @return {boolean}
68 */ 68 */
69 isOwnerLabelHidden_: function(isOwner, isWhitelistManaged) {
70 return isOwner || isWhitelistManaged;
71 },
72
73 /**
74 * @param {boolean} isOwner
75 * @param {boolean} isWhitelistManaged
76 * @private
77 * @return {boolean}
78 */
79 isEditingDisabled_: function(isOwner, isWhitelistManaged) { 69 isEditingDisabled_: function(isOwner, isWhitelistManaged) {
80 return !isOwner || isWhitelistManaged; 70 return !isOwner || isWhitelistManaged;
81 }, 71 },
82 72
83 /** 73 /**
84 * @param {boolean} isOwner 74 * @param {boolean} isOwner
85 * @param {boolean} isWhitelistManaged 75 * @param {boolean} isWhitelistManaged
86 * @param {boolean} allowGuest 76 * @param {boolean} allowGuest
87 * @private 77 * @private
88 * @return {boolean} 78 * @return {boolean}
89 */ 79 */
90 isEditingUsersDisabled_: function(isOwner, isWhitelistManaged, allowGuest) { 80 isEditingUsersDisabled_: function(isOwner, isWhitelistManaged, allowGuest) {
91 return !isOwner || isWhitelistManaged || allowGuest; 81 return !isOwner || isWhitelistManaged || allowGuest;
92 } 82 }
93 }); 83 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698