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

Unified Diff: chrome/browser/resources/options/supervised_user_list_data.js

Issue 557633002: Add public API generation with cr.makePublic() and handle it in compiler pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Patch Set: fix bug with oobe Created 6 years, 3 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/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 f73feca63f0421b663ee1f78cf5363acea3aece2..812620e4e277a613b64092921007f22ead5fc248 100644
--- a/chrome/browser/resources/options/supervised_user_list_data.js
+++ b/chrome/browser/resources/options/supervised_user_list_data.js
@@ -134,19 +134,14 @@ cr.define('options', function() {
};
// 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 {
« no previous file with comments | « chrome/browser/resources/options/supervised_user_import.js ('k') | third_party/closure_compiler/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698