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 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; | 430 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; |
431 | 431 |
432 $('manage-accounts-button').onclick = function(event) { | 432 $('manage-accounts-button').onclick = function(event) { |
433 PageManager.showPageByName('accounts'); | 433 PageManager.showPageByName('accounts'); |
434 chrome.send('coreOptionsUserMetricsAction', | 434 chrome.send('coreOptionsUserMetricsAction', |
435 ['Options_ManageAccounts']); | 435 ['Options_ManageAccounts']); |
436 }; | 436 }; |
437 | 437 |
438 if (loadTimeData.getBoolean('showQuickUnlockSettings')) { | 438 if (loadTimeData.getBoolean('showQuickUnlockSettings')) { |
439 $('manage-screenlock').onclick = function(event) { | 439 $('manage-screenlock').onclick = function(event) { |
440 PageManager.showPageByName('quickUnlockConfigureOverlay'); | 440 PageManager.showPageByName('quickUnlockConfigureOverlay'); |
jdufault
2016/09/13 18:36:05
nit: indentation
sammiequon
2016/09/13 19:21:40
Done.
| |
441 chrome.send('metricsHandler:recordInHistogram', | |
442 [PinUnlockUmaHistogramName, PinUnlockSetupType.START_SCREEN_LOCK, | |
443 PinUnlockSetupType.MAX_BUCKET]); | |
441 }; | 444 }; |
442 $('manage-screenlock').hidden = false; | 445 $('manage-screenlock').hidden = false; |
443 } | 446 } |
444 } else { | 447 } else { |
445 $('import-data').onclick = function(event) { | 448 $('import-data').onclick = function(event) { |
446 ImportDataOverlay.show(); | 449 ImportDataOverlay.show(); |
447 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); | 450 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); |
448 }; | 451 }; |
449 | 452 |
450 if ($('themes-native-button')) { | 453 if ($('themes-native-button')) { |
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2411 | 2414 |
2412 settings.hidden = !isVisible; | 2415 settings.hidden = !isVisible; |
2413 }; | 2416 }; |
2414 } | 2417 } |
2415 | 2418 |
2416 // Export | 2419 // Export |
2417 return { | 2420 return { |
2418 BrowserOptions: BrowserOptions | 2421 BrowserOptions: BrowserOptions |
2419 }; | 2422 }; |
2420 }); | 2423 }); |
OLD | NEW |