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

Side by Side Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 2498153002: [MD Settings][MD User Manager] create/manage profile desktop shortcut (Windows only) (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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 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 * The mock signin.ProfileBrowserProxy. 6 * The mock signin.ProfileBrowserProxy.
7 * 7 *
8 * @constructor 8 * @constructor
9 * @implements {signin.ProfileBrowserProxy} 9 * @implements {signin.ProfileBrowserProxy}
10 * @extends {settings.TestBrowserProxy} 10 * @extends {settings.TestBrowserProxy}
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 cancelCreateProfile: function() { 94 cancelCreateProfile: function() {
95 /** 95 /**
96 * Flag used to test whether this method was not called. 96 * Flag used to test whether this method was not called.
97 * @type {boolean} 97 * @type {boolean}
98 */ 98 */
99 this.cancelCreateProfileCalled = true; 99 this.cancelCreateProfileCalled = true;
100 this.methodCalled('cancelCreateProfile'); 100 this.methodCalled('cancelCreateProfile');
101 }, 101 },
102 102
103 /** @override */ 103 /** @override */
104 createProfile: function(profileName, profileIconUrl, isSupervised, 104 createProfile: function(profileName, profileIconUrl, createShortcut,
105 supervisedUserId, custodianProfilePath) { 105 isSupervised, supervisedUserId, custodianProfilePath) {
106 this.methodCalled('createProfile', 106 this.methodCalled('createProfile',
107 {profileName: profileName, 107 {profileName: profileName,
108 profileIconUrl: profileIconUrl, 108 profileIconUrl: profileIconUrl,
109 createShortcut: createShortcut,
109 isSupervised: isSupervised, 110 isSupervised: isSupervised,
110 supervisedUserId: supervisedUserId, 111 supervisedUserId: supervisedUserId,
111 custodianProfilePath: custodianProfilePath}); 112 custodianProfilePath: custodianProfilePath});
112 }, 113 },
113 114
114 /** @override */ 115 /** @override */
115 launchGuestUser: function() { 116 launchGuestUser: function() {
116 this.methodCalled('launchGuestUser'); 117 this.methodCalled('launchGuestUser');
117 }, 118 },
118 119
119 /** @override */ 120 /** @override */
120 getExistingSupervisedUsers: function() { 121 getExistingSupervisedUsers: function() {
121 this.methodCalled('getExistingSupervisedUsers'); 122 this.methodCalled('getExistingSupervisedUsers');
122 return Promise.resolve(this.existingSupervisedUsers_); 123 return Promise.resolve(this.existingSupervisedUsers_);
123 }, 124 },
124 125
125 /** @override */ 126 /** @override */
126 areAllProfilesLocked: function() { 127 areAllProfilesLocked: function() {
127 this.methodCalled('areAllProfilesLocked'); 128 this.methodCalled('areAllProfilesLocked');
128 return Promise.resolve(this.allProfilesLocked_); 129 return Promise.resolve(this.allProfilesLocked_);
129 }, 130 },
130 }; 131 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698