| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |