| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** @typedef {{appsEnforced: boolean, | 7 /** @typedef {{appsEnforced: boolean, |
| 8 * appsRegistered: boolean, | 8 * appsRegistered: boolean, |
| 9 * appsSynced: boolean, | 9 * appsSynced: boolean, |
| 10 * autofillEnforced: boolean, | 10 * autofillEnforced: boolean, |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 */ | 804 */ |
| 805 startSignIn_: function(creatingSupervisedUser) { | 805 startSignIn_: function(creatingSupervisedUser) { |
| 806 chrome.send('SyncSetupStartSignIn', [creatingSupervisedUser]); | 806 chrome.send('SyncSetupStartSignIn', [creatingSupervisedUser]); |
| 807 }, | 807 }, |
| 808 | 808 |
| 809 /** | 809 /** |
| 810 * Forces user to sign out of Chrome for Chrome OS. | 810 * Forces user to sign out of Chrome for Chrome OS. |
| 811 * @private | 811 * @private |
| 812 */ | 812 */ |
| 813 doSignOutOnAuthError_: function() { | 813 doSignOutOnAuthError_: function() { |
| 814 chrome.send('SyncSetupDoSignOutOnAuthError'); | 814 chrome.send('AttemptUserExit'); |
| 815 }, | 815 }, |
| 816 }; | 816 }; |
| 817 | 817 |
| 818 // Forward public APIs to private implementations. | 818 // Forward public APIs to private implementations. |
| 819 cr.makePublic(SyncSetupOverlay, [ | 819 cr.makePublic(SyncSetupOverlay, [ |
| 820 'closeOverlay', | 820 'closeOverlay', |
| 821 'showSetupUI', | 821 'showSetupUI', |
| 822 'startSignIn', | 822 'startSignIn', |
| 823 'doSignOutOnAuthError', | 823 'doSignOutOnAuthError', |
| 824 'showSyncSetupPage', | 824 'showSyncSetupPage', |
| 825 'showCustomizePage', | 825 'showCustomizePage', |
| 826 'showStopSyncingUI', | 826 'showStopSyncingUI', |
| 827 ]); | 827 ]); |
| 828 | 828 |
| 829 // Export | 829 // Export |
| 830 return { | 830 return { |
| 831 SyncSetupOverlay: SyncSetupOverlay | 831 SyncSetupOverlay: SyncSetupOverlay |
| 832 }; | 832 }; |
| 833 }); | 833 }); |
| OLD | NEW |