Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 2236213002: Add quick unlock Settings in options page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 this.updateAccountPicture_(); 427 this.updateAccountPicture_();
428 428
429 $('account-picture').onclick = this.showImagerPickerOverlay_; 429 $('account-picture').onclick = this.showImagerPickerOverlay_;
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
438 if (loadTimeData.getBoolean('showQuickUnlockSettings')) {
439 $('manage-screenlock').onclick = function(event) {
440 PageManager.showPageByName('quickUnlockConfigureOverlay');
441 };
442 $('manage-screenlock').hidden = false;
443 }
437 } else { 444 } else {
438 $('import-data').onclick = function(event) { 445 $('import-data').onclick = function(event) {
439 ImportDataOverlay.show(); 446 ImportDataOverlay.show();
440 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); 447 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']);
441 }; 448 };
442 449
443 if ($('themes-native-button')) { 450 if ($('themes-native-button')) {
444 $('themes-native-button').onclick = function(event) { 451 $('themes-native-button').onclick = function(event) {
445 chrome.send('themesSetNative'); 452 chrome.send('themesSetNative');
446 }; 453 };
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 2411
2405 settings.hidden = !isVisible; 2412 settings.hidden = !isVisible;
2406 }; 2413 };
2407 } 2414 }
2408 2415
2409 // Export 2416 // Export
2410 return { 2417 return {
2411 BrowserOptions: BrowserOptions 2418 BrowserOptions: BrowserOptions
2412 }; 2419 };
2413 }); 2420 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698