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

Unified Diff: chrome/browser/resources/md_user_manager/profile_browser_proxy.js

Issue 2025433002: MD User Manager: Display error message when all profiles are locked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment 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 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 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');
}
};
« no previous file with comments | « chrome/browser/resources/md_user_manager/error_dialog.js ('k') | chrome/browser/resources/md_user_manager/user_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698