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

Unified Diff: chrome/browser/resources/settings/users_page/user_list.js

Issue 1503403004: Settings People Rewrite: Move users_page as subpage of People. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0053-people-rename-a-bunch-of-stuff
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/users_page/user_list.js
diff --git a/chrome/browser/resources/settings/users_page/user_list.js b/chrome/browser/resources/settings/users_page/user_list.js
deleted file mode 100644
index 35bce238042b494390f7d2f6577470a8b481f4ab..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/users_page/user_list.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview
- * 'settings-user-list' shows a list of users whitelisted on this Chrome OS
- * device.
- *
- * Example:
- *
- * <settings-user-list prefs="{{prefs}}">
- * </settings-user-list>
- *
- * @group Chrome Settings Elements
- * @element settings-user-list
- */
-Polymer({
- is: 'settings-user-list',
-
- properties: {
- /**
- * Current list of whitelisted users.
- * @type {!Array<!User>}
- */
- users: {
- type: Array,
- value: function() { return []; },
- notify: true
- },
-
- /**
- * Whether the user list is disabled, i.e. that no modifications can be
- * made.
- * @type {boolean}
- */
- disabled: {
- type: Boolean,
- value: false
- }
- },
-
- /** @override */
- ready: function() {
- chrome.settingsPrivate.onPrefsChanged.addListener(function(prefs) {
- prefs.forEach(function(pref) {
- if (pref.key == 'cros.accounts.users') {
- chrome.usersPrivate.getWhitelistedUsers(function(users) {
- this.users = users;
- }.bind(this));
- }
- }, this);
- }.bind(this));
-
- chrome.usersPrivate.getWhitelistedUsers(function(users) {
- this.users = users;
- }.bind(this));
- },
-
- /** @private */
- removeUser_: function(e) {
- chrome.usersPrivate.removeWhitelistedUser(
- e.model.item.email, /* callback */ function() {});
- },
-
- /** @private */
- shouldHideCloseButton_: function(disabled, isUserOwner) {
- return disabled || isUserOwner;
- }
-});
-

Powered by Google App Engine
This is Rietveld 408576698