| 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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 * @private | 835 * @private |
| 836 */ | 836 */ |
| 837 showSetupUI_: function() { | 837 showSetupUI_: function() { |
| 838 chrome.send('SyncSetupShowSetupUI'); | 838 chrome.send('SyncSetupShowSetupUI'); |
| 839 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowSyncAdvanced']); | 839 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowSyncAdvanced']); |
| 840 }, | 840 }, |
| 841 | 841 |
| 842 /** | 842 /** |
| 843 * Starts the signin process for the user. Does nothing if the user is | 843 * Starts the signin process for the user. Does nothing if the user is |
| 844 * already signed in. | 844 * already signed in. |
| 845 * @param {boolean} creatingSupervisedUser |
| 845 * @private | 846 * @private |
| 846 */ | 847 */ |
| 847 startSignIn_: function(accessPoint) { | 848 startSignIn_: function(creatingSupervisedUser) { |
| 848 chrome.send('SyncSetupStartSignIn', [accessPoint]); | 849 chrome.send('SyncSetupStartSignIn', [creatingSupervisedUser]); |
| 849 }, | 850 }, |
| 850 | 851 |
| 851 /** | 852 /** |
| 852 * Forces user to sign out of Chrome for Chrome OS. | 853 * Forces user to sign out of Chrome for Chrome OS. |
| 853 * @private | 854 * @private |
| 854 */ | 855 */ |
| 855 doSignOutOnAuthError_: function() { | 856 doSignOutOnAuthError_: function() { |
| 856 chrome.send('SyncSetupDoSignOutOnAuthError'); | 857 chrome.send('SyncSetupDoSignOutOnAuthError'); |
| 857 }, | 858 }, |
| 858 }; | 859 }; |
| 859 | 860 |
| 860 // Forward public APIs to private implementations. | 861 // Forward public APIs to private implementations. |
| 861 cr.makePublic(SyncSetupOverlay, [ | 862 cr.makePublic(SyncSetupOverlay, [ |
| 862 'closeOverlay', | 863 'closeOverlay', |
| 863 'showSetupUI', | 864 'showSetupUI', |
| 864 'startSignIn', | 865 'startSignIn', |
| 865 'doSignOutOnAuthError', | 866 'doSignOutOnAuthError', |
| 866 'showSyncSetupPage', | 867 'showSyncSetupPage', |
| 867 'showCustomizePage', | 868 'showCustomizePage', |
| 868 'showStopSyncingUI', | 869 'showStopSyncingUI', |
| 869 ]); | 870 ]); |
| 870 | 871 |
| 871 // Export | 872 // Export |
| 872 return { | 873 return { |
| 873 SyncSetupOverlay: SyncSetupOverlay | 874 SyncSetupOverlay: SyncSetupOverlay |
| 874 }; | 875 }; |
| 875 }); | 876 }); |
| OLD | NEW |