Index: chrome/browser/resources/options/manage_profile_overlay.js |
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js |
index a724b03cd407b75733a2abc9eb58216414ec2dda..5284d8c38be4ebc9ad4e03087ae0262f120cada3 100644 |
--- a/chrome/browser/resources/options/manage_profile_overlay.js |
+++ b/chrome/browser/resources/options/manage_profile_overlay.js |
@@ -598,7 +598,7 @@ cr.define('options', function() { |
}; |
// Forward public APIs to private implementations. |
- [ |
+ cr.makePublic(ManageProfileOverlay, [ |
'receiveDefaultProfileIconsAndNames', |
'receiveNewProfileDefaults', |
'receiveExistingProfileNames', |
@@ -609,12 +609,7 @@ cr.define('options', function() { |
'showDeleteDialog', |
'showDisconnectManagedProfileDialog', |
'showCreateDialog', |
- ].forEach(function(name) { |
- ManageProfileOverlay[name] = function() { |
- var instance = ManageProfileOverlay.getInstance(); |
- return instance[name + '_'].apply(instance, arguments); |
- }; |
- }); |
+ ]); |
function CreateProfileOverlay() { |
Page.call(this, 'createProfile', |
@@ -854,7 +849,7 @@ cr.define('options', function() { |
}; |
// Forward public APIs to private implementations. |
- [ |
+ cr.makePublic(CreateProfileOverlay, [ |
'cancelCreateProfile', |
'onError', |
'onSuccess', |
@@ -862,12 +857,7 @@ cr.define('options', function() { |
'updateCreateInProgress', |
'updateSignedInStatus', |
'updateSupervisedUsersAllowed', |
- ].forEach(function(name) { |
- CreateProfileOverlay[name] = function() { |
- var instance = CreateProfileOverlay.getInstance(); |
- return instance[name + '_'].apply(instance, arguments); |
- }; |
- }); |
+ ]); |
// Export |
return { |