| 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']); | |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 $('autofill_options').onclick = function(event) { | 55 $('autofill_options').onclick = function(event) { |
| 58 OptionsPage.showPageByName('autoFillOptions'); | 56 OptionsPage.showPageByName('autoFillOptions'); |
| 59 chrome.send('coreOptionsUserMetricsAction', | |
| 60 ['Options_ShowAutoFillSettings']); | |
| 61 }; | 57 }; |
| 62 | 58 |
| 63 if (!cr.isChromeOS) { | 59 if (!cr.isChromeOS) { |
| 64 $('stop-sync').onclick = function(event) { | 60 $('stop-sync').onclick = function(event) { |
| 65 OptionsPage.showOverlay('stopSyncingOverlay'); | 61 OptionsPage.showOverlay('stopSyncingOverlay'); |
| 66 }; | 62 }; |
| 67 $('import_data').onclick = function(event) { | 63 $('import_data').onclick = function(event) { |
| 68 ImportDataOverlay.loadImporter(); | 64 ImportDataOverlay.loadImporter(); |
| 69 OptionsPage.showOverlay('importDataOverlay'); | 65 OptionsPage.showOverlay('importDataOverlay'); |
| 70 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); | |
| 71 }; | 66 }; |
| 72 } | 67 } |
| 73 | 68 |
| 74 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { | 69 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { |
| 75 $('themes_GTK_button').onclick = function(event) { | 70 $('themes_GTK_button').onclick = function(event) { |
| 76 chrome.send('themesSetGTK'); | 71 chrome.send('themesSetGTK'); |
| 77 }; | 72 }; |
| 78 | 73 |
| 79 $('themes_set_classic').onclick = function(event) { | 74 $('themes_set_classic').onclick = function(event) { |
| 80 chrome.send('themesReset'); | 75 chrome.send('themesReset'); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 103 PersonalOptions.getInstance().syncStatusCallback_(statusString); | 98 PersonalOptions.getInstance().syncStatusCallback_(statusString); |
| 104 }; | 99 }; |
| 105 | 100 |
| 106 // Export | 101 // Export |
| 107 return { | 102 return { |
| 108 PersonalOptions: PersonalOptions | 103 PersonalOptions: PersonalOptions |
| 109 }; | 104 }; |
| 110 | 105 |
| 111 }); | 106 }); |
| 112 | 107 |
| OLD | NEW |