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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_user_image.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
« no previous file with comments | « no previous file | chrome/browser/resources/options/automatic_settings_reset_banner.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js b/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
index 3979dc79dc292782f426232c3525c74e773ec1ab..83c1203a05ca7ee6727c3aa1829cac876a75a611 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
@@ -444,18 +444,14 @@ cr.define('login', function() {
};
// Forward public APIs to private implementations.
- [
+ cr.makePublic(UserImageScreen, [
'setDefaultImages',
'setCameraPresent',
'setProfilePictureEnabled',
'setProfileImage',
'setSelectedImage',
'hideCurtain'
- ].forEach(function(name) {
- UserImageScreen[name] = function(value) {
- $('user-image')[name + '_'](value);
- };
- });
+ ], 'user-image');
return {
UserImageScreen: UserImageScreen
« no previous file with comments | « no previous file | chrome/browser/resources/options/automatic_settings_reset_banner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698