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

Side by Side Diff: chrome/browser/resources/print_preview/data/user_info.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('print_preview', function() { 5 cr.define('print_preview', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Repository which stores information about the user. Events are dispatched 9 * Repository which stores information about the user. Events are dispatched
10 * when the information changes. 10 * when the information changes.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 * @param {string} activeUser Active user account (email). 80 * @param {string} activeUser Active user account (email).
81 * @param {!Array<string>} users List of currently logged in accounts. 81 * @param {!Array<string>} users List of currently logged in accounts.
82 */ 82 */
83 setUsers: function(activeUser, users) { 83 setUsers: function(activeUser, users) {
84 this.activeUser_ = activeUser; 84 this.activeUser_ = activeUser;
85 this.users_ = users || []; 85 this.users_ = users || [];
86 cr.dispatchSimpleEvent(this, UserInfo.EventType.USERS_CHANGED); 86 cr.dispatchSimpleEvent(this, UserInfo.EventType.USERS_CHANGED);
87 }, 87 },
88 }; 88 };
89 89
90 return { 90 return {UserInfo: UserInfo};
91 UserInfo: UserInfo
92 };
93 }); 91 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698