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

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

Issue 1921783002: import supervised users browser-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/test/data/webui/md_user_manager/create_profile_tests.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 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
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 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/md_user_manager/create_profile_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698