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 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
9 * accountInfo: (string|undefined), | 9 * accountInfo: (string|undefined), |
10 * childUser: (boolean|undefined), | 10 * childUser: (boolean|undefined), |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 $('manage-accounts-button').onclick = function(event) { | 435 $('manage-accounts-button').onclick = function(event) { |
436 PageManager.showPageByName('accounts'); | 436 PageManager.showPageByName('accounts'); |
437 chrome.send('coreOptionsUserMetricsAction', | 437 chrome.send('coreOptionsUserMetricsAction', |
438 ['Options_ManageAccounts']); | 438 ['Options_ManageAccounts']); |
439 }; | 439 }; |
440 | 440 |
441 if (loadTimeData.getBoolean('showQuickUnlockSettings')) { | 441 if (loadTimeData.getBoolean('showQuickUnlockSettings')) { |
442 $('manage-screenlock').onclick = function(event) { | 442 $('manage-screenlock').onclick = function(event) { |
443 PageManager.showPageByName('quickUnlockConfigureOverlay'); | 443 PageManager.showPageByName('quickUnlockConfigureOverlay'); |
| 444 recordLockScreenProgress(LockScreenProgress.START_SCREEN_LOCK); |
444 }; | 445 }; |
445 $('manage-screenlock').hidden = false; | 446 $('manage-screenlock').hidden = false; |
446 } | 447 } |
447 } else { | 448 } else { |
448 $('import-data').onclick = function(event) { | 449 $('import-data').onclick = function(event) { |
449 ImportDataOverlay.show(); | 450 ImportDataOverlay.show(); |
450 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); | 451 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); |
451 }; | 452 }; |
452 | 453 |
453 if ($('themes-native-button')) { | 454 if ($('themes-native-button')) { |
(...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 | 2464 |
2464 settings.hidden = !isVisible; | 2465 settings.hidden = !isVisible; |
2465 }; | 2466 }; |
2466 } | 2467 } |
2467 | 2468 |
2468 // Export | 2469 // Export |
2469 return { | 2470 return { |
2470 BrowserOptions: BrowserOptions | 2471 BrowserOptions: BrowserOptions |
2471 }; | 2472 }; |
2472 }); | 2473 }); |
OLD | NEW |