OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.define('options', function() { | 5 cr.define('options', function() { |
6 | 6 |
7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 | 8 |
9 // | 9 // |
10 // PersonalOptions class | 10 // PersonalOptions class |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 } else { | 43 } else { |
44 $('synced-controls').classList.add('hidden'); | 44 $('synced-controls').classList.add('hidden'); |
45 $('not-synced-controls').classList.remove('hidden'); | 45 $('not-synced-controls').classList.remove('hidden'); |
46 } | 46 } |
47 }); | 47 }); |
48 | 48 |
49 $('showpasswords').onclick = function(event) { | 49 $('showpasswords').onclick = function(event) { |
50 PasswordsExceptions.load(); | 50 PasswordsExceptions.load(); |
51 OptionsPage.showPageByName('passwordsExceptions'); | 51 OptionsPage.showPageByName('passwordsExceptions'); |
52 OptionsPage.showTab($('passwords-nav-tab')); | 52 OptionsPage.showTab($('passwords-nav-tab')); |
| 53 chrome.send('coreOptionsUserMetricsAction', |
| 54 ['Options_ShowPasswordsExceptions']); |
53 }; | 55 }; |
54 | 56 |
55 $('autofill_options').onclick = function(event) { | 57 $('autofill_options').onclick = function(event) { |
56 OptionsPage.showPageByName('autoFillOptions'); | 58 OptionsPage.showPageByName('autoFillOptions'); |
| 59 chrome.send('coreOptionsUserMetricsAction', |
| 60 ['Options_ShowAutoFillSettings']); |
57 }; | 61 }; |
58 | 62 |
59 if (!cr.isChromeOS) { | 63 if (!cr.isChromeOS) { |
60 $('stop-sync').onclick = function(event) { | 64 $('stop-sync').onclick = function(event) { |
61 OptionsPage.showOverlay('stopSyncingOverlay'); | 65 OptionsPage.showOverlay('stopSyncingOverlay'); |
62 }; | 66 }; |
63 $('import_data').onclick = function(event) { | 67 $('import_data').onclick = function(event) { |
64 ImportDataOverlay.loadImporter(); | 68 ImportDataOverlay.loadImporter(); |
65 OptionsPage.showOverlay('importDataOverlay'); | 69 OptionsPage.showOverlay('importDataOverlay'); |
| 70 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); |
66 }; | 71 }; |
67 } | 72 } |
68 | 73 |
69 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { | 74 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { |
70 $('themes_GTK_button').onclick = function(event) { | 75 $('themes_GTK_button').onclick = function(event) { |
71 chrome.send('themesSetGTK'); | 76 chrome.send('themesSetGTK'); |
72 }; | 77 }; |
73 | 78 |
74 $('themes_set_classic').onclick = function(event) { | 79 $('themes_set_classic').onclick = function(event) { |
75 chrome.send('themesReset'); | 80 chrome.send('themesReset'); |
(...skipping 22 matching lines...) Expand all Loading... |
98 PersonalOptions.getInstance().syncStatusCallback_(statusString); | 103 PersonalOptions.getInstance().syncStatusCallback_(statusString); |
99 }; | 104 }; |
100 | 105 |
101 // Export | 106 // Export |
102 return { | 107 return { |
103 PersonalOptions: PersonalOptions | 108 PersonalOptions: PersonalOptions |
104 }; | 109 }; |
105 | 110 |
106 }); | 111 }); |
107 | 112 |
OLD | NEW |