| OLD | NEW |
| 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 'import-supervised-user' is a popup that allows user to select | 6 * @fileoverview 'import-supervised-user' is a popup that allows user to select |
| 7 * a supervised profile from a list of profiles to import on the current device. | 7 * a supervised profile from a list of profiles to import on the current device. |
| 8 */ | 8 */ |
| 9 (function() { | 9 (function() { |
| 10 /** | 10 /** |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 }, | 123 }, |
| 124 | 124 |
| 125 /** | 125 /** |
| 126 * Called when the user clicks the 'Import' button. it proceeds with importing | 126 * Called when the user clicks the 'Import' button. it proceeds with importing |
| 127 * the supervised user. | 127 * the supervised user. |
| 128 * @private | 128 * @private |
| 129 */ | 129 */ |
| 130 onImportTap_: function() { | 130 onImportTap_: function() { |
| 131 var supervisedUser = this.supervisedUsers_[this.supervisedUserIndex_]; | 131 var supervisedUser = this.supervisedUsers_[this.supervisedUserIndex_]; |
| 132 if (this.signedInUser_ && supervisedUser) { | 132 if (this.signedInUser_ && supervisedUser) { |
| 133 this.popupHidden_ = true; |
| 133 // Event is caught by create-profile. | 134 // Event is caught by create-profile. |
| 134 this.fire('import', {supervisedUser: supervisedUser, | 135 this.fire('import', {supervisedUser: supervisedUser, |
| 135 signedInUser: this.signedInUser_}); | 136 signedInUser: this.signedInUser_}); |
| 136 this.popupHidden_ = true; | |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 }); | 139 }); |
| 140 })(); | 140 })(); |
| OLD | NEW |