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

Unified Diff: chrome/browser/resources/md_user_manager/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: Created 4 years, 9 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
Index: chrome/browser/resources/md_user_manager/profile_browser_proxy.js
diff --git a/chrome/browser/resources/md_user_manager/profile_browser_proxy.js b/chrome/browser/resources/md_user_manager/profile_browser_proxy.js
index 165b92f27947ba12ca62b096a6c3cba6ab5bc258..32b2ab7470ae564ae6e5cfbe1251f8398c89c3bd 100644
--- a/chrome/browser/resources/md_user_manager/profile_browser_proxy.js
+++ b/chrome/browser/resources/md_user_manager/profile_browser_proxy.js
@@ -13,6 +13,13 @@ var SignedInUser;
/** @typedef {{name: string, filePath: string, isSupervised: boolean}} */
var ProfileInfo;
+/** @typedef {{id: string,
+ * name: string,
+ * iconURL: string,
+ * onCurrentDevice: boolean}}
+ */
+var SupervisedUser;
+
cr.define('signin', function() {
/** @interface */
function ProfileBrowserProxy() {}
@@ -40,12 +47,22 @@ cr.define('signin', function() {
},
/**
+ * Gets the list of existing supervised users.
+ * @param {string} profilePath Profile Path of the supervisor.
+ * @return {Promise} A promise for the requested data.
+ * @private
+ */
+ getExistingSupervisedUsers: function(profilePath) {
+ assertNotReached();
+ },
+
+ /**
* Creates a profile.
* @param {string} profileName Name of the new profile.
* @param {string} profileIconUrl URL of the selected icon of the new
* profile.
* @param {boolean} isSupervised True if the new profile is supervised.
- * @param {string|undefined} supervisorProfilePath Profile path of the
+ * @param {string} supervisorProfilePath Profile path of the
* supervisor if the new profile is supervised.
*/
createProfile: function(profileName, profileIconUrl, isSupervised,
@@ -104,6 +121,11 @@ cr.define('signin', function() {
},
/** @override */
+ getExistingSupervisedUsers: function(profilePath) {
+ return cr.sendWithPromise('getExistingSupervisedUsers', profilePath);
+ },
+
+ /** @override */
createProfile: function(profileName, profileIconUrl, isSupervised,
supervisorProfilePath) {
chrome.send('createProfile',

Powered by Google App Engine
This is Rietveld 408576698