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

Side by Side Diff: chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js

Issue 2538303002: md-settings: Added settings for fingerprint unlock. (Closed)
Patch Set: Rebased. Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * QuickUnlockConfigureOverlay class 10 * QuickUnlockConfigureOverlay class
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 /** 60 /**
61 * Called when polymer has been loaded and the dialog should be displayed. 61 * Called when polymer has been loaded and the dialog should be displayed.
62 * @private 62 * @private
63 */ 63 */
64 onPolymerLoaded_: function() { 64 onPolymerLoaded_: function() {
65 settings.navigateTo(settings.Route.LOCK_SCREEN); 65 settings.navigateTo(settings.Route.LOCK_SCREEN);
66 var lockScreen = document.querySelector('settings-lock-screen'); 66 var lockScreen = document.querySelector('settings-lock-screen');
67 67
68 var checkbox = 68 var checkbox =
69 lockScreen.root.querySelector('div.settings-box'); 69 lockScreen.root.querySelector(
70 'div.settings-box.single-column.screen-lock');
70 checkbox.hidden = true; 71 checkbox.hidden = true;
71 72
72 var passwordPrompt = lockScreen.root. 73 var passwordPrompt = lockScreen.root.
73 querySelector('settings-password-prompt-dialog'); 74 querySelector('settings-password-prompt-dialog');
74 passwordPrompt.addEventListener('close', function() { 75 passwordPrompt.addEventListener('close', function() {
75 if (!lockScreen.setModes_) { 76 if (!lockScreen.setModes_) {
76 QuickUnlockConfigureOverlay.dismiss(); 77 QuickUnlockConfigureOverlay.dismiss();
77 } 78 }
78 }.bind(this)); 79 }.bind(this));
79 }, 80 },
80 }; 81 };
81 82
82 QuickUnlockConfigureOverlay.dismiss = function() { 83 QuickUnlockConfigureOverlay.dismiss = function() {
83 PageManager.closeOverlay(); 84 PageManager.closeOverlay();
84 }; 85 };
85 86
86 // Export 87 // Export
87 return { 88 return {
88 QuickUnlockConfigureOverlay: QuickUnlockConfigureOverlay 89 QuickUnlockConfigureOverlay: QuickUnlockConfigureOverlay
89 }; 90 };
90 }); 91 });
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/settings_private/prefs_util.cc ('k') | chrome/browser/resources/options_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698