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 2bc9630db21fd8c1627e2642f895b07115f94be9..26bd5fa76a51f83ce1ef71fcef918ddcd33af745 100644 |
--- a/chrome/browser/resources/md_user_manager/profile_browser_proxy.js |
+++ b/chrome/browser/resources/md_user_manager/profile_browser_proxy.js |
@@ -54,10 +54,9 @@ cr.define('signin', function() { |
}, |
/** |
- * Gets the list of existing supervised users. |
* @param {string} profilePath Profile Path of the custodian. |
- * @return {Promise} A promise for the requested data. |
- * @private |
+ * @return {!Promise<!Array<!SupervisedUser>>} The list of existing |
+ * supervised users. |
*/ |
getExistingSupervisedUsers: function(profilePath) { |
assertNotReached(); |
@@ -118,6 +117,14 @@ cr.define('signin', function() { |
*/ |
switchToProfile: function(profilePath) { |
assertNotReached(); |
+ }, |
+ |
+ /** |
+ * @return {!Promise<boolean>} Whether all (non-supervised and non-child) |
+ * profiles are locked. |
+ */ |
+ areAllProfilesLocked: function() { |
+ assertNotReached(); |
} |
}; |
@@ -183,6 +190,11 @@ cr.define('signin', function() { |
/** @override */ |
switchToProfile: function(profilePath) { |
chrome.send('switchToProfile', [profilePath]); |
+ }, |
+ |
+ /** @override */ |
+ areAllProfilesLocked: function() { |
+ return cr.sendWithPromise('areAllProfilesLocked'); |
} |
}; |