Chromium Code Reviews

Unified Diff: chrome/browser/resources/options/chromeos/change_picture_options.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.
Jump to:
View side-by-side diff with in-line comments
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 678b95d445b3c83813cbdc7933bf173dd5286774..f5f414799a5cfd496226e679b732c51656b7134e 100644
--- a/chrome/browser/resources/options/chromeos/change_picture_options.js
+++ b/chrome/browser/resources/options/chromeos/change_picture_options.js
@@ -324,19 +324,14 @@ cr.define('options', function() {
};
// 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