| 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 dcdcc1a273c0210913a60be866fe2adc32caec31..7db76e2b4f96c6b689888f6dd7b61902ee17b9be 100644
|
| --- a/chrome/browser/resources/options/manage_profile_overlay.js
|
| +++ b/chrome/browser/resources/options/manage_profile_overlay.js
|
| @@ -597,7 +597,7 @@ cr.define('options', function() {
|
| };
|
|
|
| // Forward public APIs to private implementations.
|
| - [
|
| + cr.makePublic(ManageProfileOverlay, [
|
| 'receiveDefaultProfileIconsAndNames',
|
| 'receiveNewProfileDefaults',
|
| 'receiveExistingProfileNames',
|
| @@ -608,12 +608,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',
|
| @@ -853,7 +848,7 @@ cr.define('options', function() {
|
| };
|
|
|
| // Forward public APIs to private implementations.
|
| - [
|
| + cr.makePublic(CreateProfileOverlay, [
|
| 'cancelCreateProfile',
|
| 'onError',
|
| 'onSuccess',
|
| @@ -861,12 +856,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 {
|
|
|