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

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

Issue 2313103002: Added uma for pin unlock set up. (Closed)
Patch Set: Closure compiler fix. Created 4 years 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 * 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
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 settings.recordLockScreenProgress(
445 LockScreenProgress.START_SCREEN_LOCK);
444 }; 446 };
445 $('manage-screenlock').hidden = false; 447 $('manage-screenlock').hidden = false;
446 } 448 }
447 } else { 449 } else {
448 $('import-data').onclick = function(event) { 450 $('import-data').onclick = function(event) {
449 ImportDataOverlay.show(); 451 ImportDataOverlay.show();
450 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); 452 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']);
451 }; 453 };
452 454
453 if ($('themes-native-button')) { 455 if ($('themes-native-button')) {
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 2468
2467 settings.hidden = !isVisible; 2469 settings.hidden = !isVisible;
2468 }; 2470 };
2469 } 2471 }
2470 2472
2471 // Export 2473 // Export
2472 return { 2474 return {
2473 BrowserOptions: BrowserOptions 2475 BrowserOptions: BrowserOptions
2474 }; 2476 };
2475 }); 2477 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/resources/options/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698