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

Side by Side Diff: ui/login/account_picker/screen_account_picker.js

Issue 2559323006: Debug "failed do deserialize"
Patch Set: 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
« no previous file with comments | « no previous file | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Account picker screen implementation. 6 * @fileoverview Account picker screen implementation.
7 */ 7 */
8 8
9 login.createScreen('AccountPickerScreen', 'account-picker', function() { 9 login.createScreen('AccountPickerScreen', 'account-picker', function() {
10 /** 10 /**
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 } 281 }
282 }, 282 },
283 283
284 /** 284 /**
285 * Loads given users in pod row. 285 * Loads given users in pod row.
286 * @param {array} users Array of user. 286 * @param {array} users Array of user.
287 * @param {boolean} showGuest Whether to show guest session button. 287 * @param {boolean} showGuest Whether to show guest session button.
288 */ 288 */
289 loadUsers: function(users, showGuest) { 289 loadUsers: function(users, showGuest) {
290 console.error("loadUsers: users:\n" + JSON.stringify(users,2,null));
290 $('pod-row').loadPods(users); 291 $('pod-row').loadPods(users);
291 $('login-header-bar').showGuestButton = showGuest; 292 $('login-header-bar').showGuestButton = showGuest;
292 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles. 293 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles.
293 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER) 294 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER)
294 $('login-header-bar').classList.toggle('shadow', users.length > 8); 295 $('login-header-bar').classList.toggle('shadow', users.length > 8);
295 296
296 this.initializePinKeyboardStateForUsers_(users); 297 this.initializePinKeyboardStateForUsers_(users);
297 }, 298 },
298 299
299 /** 300 /**
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 * @param {string} userID The user ID of the public session 466 * @param {string} userID The user ID of the public session
466 * @param {string} locale The locale to which this list of keyboard layouts 467 * @param {string} locale The locale to which this list of keyboard layouts
467 * applies 468 * applies
468 * @param {!Object} list List of available keyboard layouts 469 * @param {!Object} list List of available keyboard layouts
469 */ 470 */
470 setPublicSessionKeyboardLayouts: function(userID, locale, list) { 471 setPublicSessionKeyboardLayouts: function(userID, locale, list) {
471 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); 472 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list);
472 } 473 }
473 }; 474 };
474 }); 475 });
OLDNEW
« no previous file with comments | « no previous file | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698