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 8b5e009310a070b2f1779f86209c51be7efb7911..86c13f2362c2d34324ae1ab2a3bad1c2da023655 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 |
@@ -19,6 +19,7 @@ var TestProfileBrowserProxy = function() { |
'initializeUserManager', |
'launchUser', |
'getExistingSupervisedUsers', |
+ 'isAtLeastOneProfileUnlocked', |
dpapad
2016/05/31 22:07:41
After latest changes to the previous CL this shoul
Moe
2016/05/31 22:47:39
Done.
|
]); |
/** @private {!Array<string>} */ |
@@ -32,6 +33,9 @@ var TestProfileBrowserProxy = function() { |
/** @private {!Array<SupervisedUser>} */ |
this.existingSupervisedUsers_ = []; |
+ |
+ /** @private {boolean} */ |
+ this.atLeastOneProfileUnlocked_ = true; |
}; |
TestProfileBrowserProxy.prototype = { |
@@ -65,6 +69,10 @@ TestProfileBrowserProxy.prototype = { |
this.existingSupervisedUsers_ = supervisedUsers; |
}, |
+ setAtLeastOneProfileUnlocked_: function(atLeastOneProfileUnlocked) { |
dpapad
2016/05/31 22:07:41
This is called by other classes, should be made pu
Moe
2016/05/31 22:47:39
Done.
|
+ this.atLeastOneProfileUnlocked_ = atLeastOneProfileUnlocked; |
+ }, |
+ |
/** @override */ |
getAvailableIcons: function() { |
this.methodCalled('getAvailableIcons'); |
@@ -110,4 +118,11 @@ TestProfileBrowserProxy.prototype = { |
this.methodCalled('getExistingSupervisedUsers'); |
return Promise.resolve(this.existingSupervisedUsers_); |
}, |
+ |
+ /** @override */ |
+ isAtLeastOneProfileUnlocked: function() { |
+ this.methodCalled('isAtLeastOneProfileUnlocked'); |
+ return this.atLeastOneProfileUnlocked_ ? Promise.resolve() : |
+ Promise.reject(); |
dpapad
2016/05/31 22:07:41
After your latest changes to the other CL, this sh
Moe
2016/05/31 22:47:39
Done.
|
+ }, |
}; |