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

Unified Diff: chrome/browser/resources/options/chromeos/change_picture_options.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/chromeos/change_picture_options.js
diff --git a/chrome/browser/resources/options/chromeos/change_picture_options.js b/chrome/browser/resources/options/chromeos/change_picture_options.js
index f5f414799a5cfd496226e679b732c51656b7134e..678b95d445b3c83813cbdc7933bf173dd5286774 100644
--- a/chrome/browser/resources/options/chromeos/change_picture_options.js
+++ b/chrome/browser/resources/options/chromeos/change_picture_options.js
@@ -324,14 +324,19 @@
};
// Forward public APIs to private implementations.
- cr.makePublic(ChangePictureOptions, [
+ [
'closeOverlay',
'setCameraPresent',
'setDefaultImages',
'setOldImage',
'setProfileImage',
'setSelectedImage',
- ]);
+ ].forEach(function(name) {
+ ChangePictureOptions[name] = function() {
+ var instance = ChangePictureOptions.getInstance();
+ return instance[name + '_'].apply(instance, arguments);
+ };
+ });
// Export
return {
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/options/chromeos/keyboard_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698