Index: chrome/browser/resources/options/supervised_user_list_data.js |
diff --git a/chrome/browser/resources/options/supervised_user_list_data.js b/chrome/browser/resources/options/supervised_user_list_data.js |
index 812620e4e277a613b64092921007f22ead5fc248..f73feca63f0421b663ee1f78cf5363acea3aece2 100644 |
--- a/chrome/browser/resources/options/supervised_user_list_data.js |
+++ b/chrome/browser/resources/options/supervised_user_list_data.js |
@@ -134,14 +134,19 @@ |
}; |
// Forward public APIs to private implementations. |
- cr.makePublic(SupervisedUserListData, [ |
+ [ |
'addObserver', |
'onSigninError', |
'receiveExistingSupervisedUsers', |
'removeObserver', |
'requestExistingSupervisedUsers', |
'resetPromise', |
- ]); |
+ ].forEach(function(name) { |
+ SupervisedUserListData[name] = function() { |
+ var instance = SupervisedUserListData.getInstance(); |
+ return instance[name + '_'].apply(instance, arguments); |
+ }; |
+ }); |
// Export |
return { |