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 // State variables. | 9 // State variables. |
10 var syncEnabled = false; | 10 var syncEnabled = false; |
(...skipping 26 matching lines...) Expand all Loading... |
37 $('start-stop-sync').onclick = function(event) { | 37 $('start-stop-sync').onclick = function(event) { |
38 if (self.syncSetupCompleted) | 38 if (self.syncSetupCompleted) |
39 self.showStopSyncingOverlay_(); | 39 self.showStopSyncingOverlay_(); |
40 else | 40 else |
41 chrome.send('showSyncLoginDialog'); | 41 chrome.send('showSyncLoginDialog'); |
42 }; | 42 }; |
43 $('privacy-dashboard-link').onclick = function(event) { | 43 $('privacy-dashboard-link').onclick = function(event) { |
44 chrome.send('openPrivacyDashboardTabAndActivate'); | 44 chrome.send('openPrivacyDashboardTabAndActivate'); |
45 }; | 45 }; |
46 $('manage-passwords').onclick = function(event) { | 46 $('manage-passwords').onclick = function(event) { |
47 PasswordManager.load(); | |
48 OptionsPage.showPageByName('passwordManager'); | 47 OptionsPage.showPageByName('passwordManager'); |
49 OptionsPage.showTab($('passwords-nav-tab')); | 48 OptionsPage.showTab($('passwords-nav-tab')); |
50 chrome.send('coreOptionsUserMetricsAction', | 49 chrome.send('coreOptionsUserMetricsAction', |
51 ['Options_ShowPasswordManager']); | 50 ['Options_ShowPasswordManager']); |
52 }; | 51 }; |
53 $('autofill-settings').onclick = function(event) { | 52 $('autofill-settings').onclick = function(event) { |
54 OptionsPage.showPageByName('autoFillOptions'); | 53 OptionsPage.showPageByName('autoFillOptions'); |
55 chrome.send('coreOptionsUserMetricsAction', | 54 chrome.send('coreOptionsUserMetricsAction', |
56 ['Options_ShowAutoFillSettings']); | 55 ['Options_ShowAutoFillSettings']); |
57 }; | 56 }; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 PersonalOptions.getInstance()[name + '_'](value); | 239 PersonalOptions.getInstance()[name + '_'](value); |
241 }; | 240 }; |
242 }); | 241 }); |
243 | 242 |
244 // Export | 243 // Export |
245 return { | 244 return { |
246 PersonalOptions: PersonalOptions | 245 PersonalOptions: PersonalOptions |
247 }; | 246 }; |
248 | 247 |
249 }); | 248 }); |
OLD | NEW |