Chromium Code Reviews| Index: chrome/browser/resources/options/sync_setup_overlay.js |
| diff --git a/chrome/browser/resources/options/sync_setup_overlay.js b/chrome/browser/resources/options/sync_setup_overlay.js |
| index 4b5944987f3996d624c882143e572dc8eba5d77d..eb6b71aa282a4d57f35efa80c3ff0c2eb54b1bf2 100644 |
| --- a/chrome/browser/resources/options/sync_setup_overlay.js |
| +++ b/chrome/browser/resources/options/sync_setup_overlay.js |
| @@ -827,8 +827,8 @@ cr.define('options', function() { |
| * already signed in. |
| * @private |
| */ |
| - startSignIn_: function() { |
| - chrome.send('SyncSetupStartSignIn'); |
| + startSignIn_: function(accessPoint) { |
| + chrome.send('SyncSetupStartSignIn', [accessPoint]); |
| }, |
| /** |
| @@ -840,34 +840,16 @@ cr.define('options', function() { |
| }, |
| }; |
| - // These methods are for general consumption. |
| - SyncSetupOverlay.closeOverlay = function() { |
| - SyncSetupOverlay.getInstance().closeOverlay_(); |
| - }; |
| - |
| - SyncSetupOverlay.showSetupUI = function() { |
| - SyncSetupOverlay.getInstance().showSetupUI_(); |
| - }; |
| - |
| - SyncSetupOverlay.startSignIn = function() { |
| - SyncSetupOverlay.getInstance().startSignIn_(); |
| - }; |
| - |
| - SyncSetupOverlay.doSignOutOnAuthError = function() { |
| - SyncSetupOverlay.getInstance().doSignOutOnAuthError_(); |
| - }; |
| - |
| - SyncSetupOverlay.showSyncSetupPage = function(page, args) { |
| - SyncSetupOverlay.getInstance().showSyncSetupPage_(page, args); |
| - }; |
| - |
| - SyncSetupOverlay.showCustomizePage = function(args, index) { |
| - SyncSetupOverlay.getInstance().showCustomizePage_(args, index); |
| - }; |
| - |
| - SyncSetupOverlay.showStopSyncingUI = function() { |
| - SyncSetupOverlay.getInstance().showStopSyncingUI_(); |
| - }; |
| + // Forward public APIs to private implementations. |
| + cr.makePublic(SyncSetupOverlay, [ |
| + 'closeOverlay', |
| + 'showSetupUI', |
| + 'startSignIn', |
| + 'doSignOutOnAuthError', |
| + 'showSyncSetupPage', |
| + 'showCustomizePage', |
| + 'showStopSyncingUI', |
| + ]); |
|
Bernhard Bauer
2015/12/07 12:14:54
This line should be indented two spaces less.
gogerald1
2015/12/07 16:45:29
Done.
Bernhard Bauer
2015/12/07 16:49:27
_Two_ spaces less. You removed four, so now it's t
|
| // Export |
| return { |