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

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

Issue 577843003: Revert of 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: 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/password_manager.js
diff --git a/chrome/browser/resources/options/password_manager.js b/chrome/browser/resources/options/password_manager.js
index 12cc35d9423ae0f579b102679f8953efb9caa077..98b8a02303078e1b3755433bd57faf0e3da69286 100644
--- a/chrome/browser/resources/options/password_manager.js
+++ b/chrome/browser/resources/options/password_manager.js
@@ -232,11 +232,16 @@
};
// Forward public APIs to private implementations on the singleton instance.
- cr.makePublic(PasswordManager, [
+ [
'setSavedPasswordsList',
'setPasswordExceptionsList',
'showPassword'
- ]);
+ ].forEach(function(name) {
+ PasswordManager[name] = function() {
+ var instance = PasswordManager.getInstance();
+ return instance[name + '_'].apply(instance, arguments);
+ };
+ });
// Export
return {
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.js ('k') | chrome/browser/resources/options/settings_banner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698