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

Unified Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 1826903002: updated UI, default profile name, check for existing supervised user before create (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
diff --git a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
index c82187951094479c0182b6f441ebbdc0e125347d..c2b937423acc539b0eada10394147c26952dfcfe 100644
--- a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
+++ b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
@@ -17,7 +17,8 @@ var TestProfileBrowserProxy = function() {
'createProfile',
'cancelCreateProfile',
'initializeUserManager',
- 'launchUser'
+ 'launchUser',
+ 'getExistingSupervisedUsers',
]);
/** @private {!Array<string>} */
@@ -25,6 +26,12 @@ var TestProfileBrowserProxy = function() {
/** @private {!Array<SignedInUser>} */
this.signedInUsers_ = [];
+
+ /** @private {!ProfileInfo} */
+ this.defaultProfileInfo_ = {};
+
+ /** @private {!Array<SupervisedUser>} */
+ this.existingSupervisedUsers_ = [];
};
TestProfileBrowserProxy.prototype = {
@@ -44,10 +51,26 @@ TestProfileBrowserProxy.prototype = {
this.signedInUsers_ = signedInUsers;
},
+ /**
+ * @param {!ProfileInfo} profileInfo
+ */
+ setDefaultProfileInfo: function(profileInfo) {
+ this.defaultProfileInfo_ = profileInfo;
+ },
+
+ /**
+ * @param {!Array<SupervisedUser>} supervisedUsers
+ */
+ setExistingSupervisedUsers: function(supervisedUsers) {
+ this.existingSupervisedUsers_ = supervisedUsers;
+ },
+
/** @override */
getAvailableIcons: function() {
this.methodCalled('getAvailableIcons');
cr.webUIListenerCallback('profile-icons-received', this.iconUrls_);
+ cr.webUIListenerCallback('profile-defaults-received',
+ this.defaultProfileInfo_);
},
/** @override */
@@ -68,16 +91,22 @@ TestProfileBrowserProxy.prototype = {
/** @override */
createProfile: function(profileName, profileIconUrl, isSupervised,
- supervisorProfilePath) {
+ custodianProfilePath) {
this.methodCalled('createProfile',
{profileName: profileName,
profileIconUrl: profileIconUrl,
isSupervised: isSupervised,
- supervisorProfilePath: supervisorProfilePath});
+ custodianProfilePath: custodianProfilePath});
},
/** @override */
launchGuestUser: function() {
this.methodCalled('launchGuestUser');
- }
+ },
+
+ /** @override */
+ getExistingSupervisedUsers: function() {
+ this.methodCalled('getExistingSupervisedUsers');
+ return Promise.resolve(this.existingSupervisedUsers_);
+ },
};
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698