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

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

Issue 2047383003: MD User Manager: "Select an account" should just be a label not a menu entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 /** 101 /**
102 * Index of the selected signed-in user. 102 * Index of the selected signed-in user.
103 * @private {number} 103 * @private {number}
104 */ 104 */
105 signedInUserIndex_: { 105 signedInUserIndex_: {
106 type: Number, 106 type: Number,
107 value: NO_USER_SELECTED 107 value: NO_USER_SELECTED
108 }, 108 },
109 109
110 /**
111 * Sentinel signed-in user's index value.
112 * @private {number}
113 */
114 sentinelSignedInUserIndex_: {
115 type: Number,
116 value: NO_USER_SELECTED,
117 readOnly: true
118 },
119
120 /** @private {!signin.ProfileBrowserProxy} */ 110 /** @private {!signin.ProfileBrowserProxy} */
121 browserProxy_: Object 111 browserProxy_: Object
122 }, 112 },
123 113
124 listeners: { 114 listeners: {
125 'tap': 'onTap_', 115 'tap': 'onTap_',
126 'importUserPopup.import': 'onImportUserPopupImport_' 116 'importUserPopup.import': 'onImportUserPopupImport_'
127 }, 117 },
128 118
129 /** @override */ 119 /** @override */
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 * Computed binding that returns True if there are any signed-in users. 480 * Computed binding that returns True if there are any signed-in users.
491 * @param {!Array<!SignedInUser>} signedInUsers signed-in users. 481 * @param {!Array<!SignedInUser>} signedInUsers signed-in users.
492 * @return {boolean} 482 * @return {boolean}
493 * @private 483 * @private
494 */ 484 */
495 isSignedIn_: function(signedInUsers) { 485 isSignedIn_: function(signedInUsers) {
496 return signedInUsers.length > 0; 486 return signedInUsers.length > 0;
497 } 487 }
498 }); 488 });
499 }()); 489 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698