| 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 /** | 7 /** |
| 8 * The user's selection in the synced data type drop-down menu, as an index. | 8 * The user's selection in the synced data type drop-down menu, as an index. |
| 9 * @enum {number} | 9 * @enum {number} |
| 10 * @const | 10 * @const |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 $('stop-syncing-cancel').focus(); | 757 $('stop-syncing-cancel').focus(); |
| 758 }, | 758 }, |
| 759 | 759 |
| 760 /** | 760 /** |
| 761 * Determines the appropriate page to show in the Sync Setup UI based on | 761 * Determines the appropriate page to show in the Sync Setup UI based on |
| 762 * the state of the Sync backend. Does nothing if the user is not signed in. | 762 * the state of the Sync backend. Does nothing if the user is not signed in. |
| 763 * @private | 763 * @private |
| 764 */ | 764 */ |
| 765 showSetupUI_: function() { | 765 showSetupUI_: function() { |
| 766 chrome.send('SyncSetupShowSetupUI'); | 766 chrome.send('SyncSetupShowSetupUI'); |
| 767 chrome.send('coreOptionsUserMetricsAction', ['Options_SyncShowAdvanced']); | 767 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowSyncAdvanced']); |
| 768 }, | 768 }, |
| 769 | 769 |
| 770 /** | 770 /** |
| 771 * Starts the signin process for the user. Does nothing if the user is | 771 * Starts the signin process for the user. Does nothing if the user is |
| 772 * already signed in. | 772 * already signed in. |
| 773 * @private | 773 * @private |
| 774 */ | 774 */ |
| 775 startSignIn_: function() { | 775 startSignIn_: function() { |
| 776 chrome.send('SyncSetupStartSignIn'); | 776 chrome.send('SyncSetupStartSignIn'); |
| 777 }, | 777 }, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 | 816 |
| 817 SyncSetupOverlay.showStopSyncingUI = function() { | 817 SyncSetupOverlay.showStopSyncingUI = function() { |
| 818 SyncSetupOverlay.getInstance().showStopSyncingUI_(); | 818 SyncSetupOverlay.getInstance().showStopSyncingUI_(); |
| 819 }; | 819 }; |
| 820 | 820 |
| 821 // Export | 821 // Export |
| 822 return { | 822 return { |
| 823 SyncSetupOverlay: SyncSetupOverlay | 823 SyncSetupOverlay: SyncSetupOverlay |
| 824 }; | 824 }; |
| 825 }); | 825 }); |
| OLD | NEW |