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

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

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * A confirmation overlay for disabling kiosk app bailout shortcut. 9 * A confirmation overlay for disabling kiosk app bailout shortcut.
10 * @extends {options.OptionsPage} 10 * @extends {options.OptionsPage}
(...skipping 13 matching lines...) Expand all
24 24
25 /** @override */ 25 /** @override */
26 initializePage: function() { 26 initializePage: function() {
27 OptionsPage.prototype.initializePage.call(this); 27 OptionsPage.prototype.initializePage.call(this);
28 28
29 var el = $('kiosk-disable-bailout-shortcut'); 29 var el = $('kiosk-disable-bailout-shortcut');
30 el.customChangeHandler = this.handleDisableBailoutShortcutChange_; 30 el.customChangeHandler = this.handleDisableBailoutShortcutChange_;
31 31
32 $('kiosk-disable-bailout-confirm-button').onclick = function(e) { 32 $('kiosk-disable-bailout-confirm-button').onclick = function(e) {
33 OptionsPage.closeOverlay(); 33 OptionsPage.closeOverlay();
34 Preferences.setBooleanPref(el.pref, true); 34 Preferences.setBooleanPref(
35 'cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled',
36 false, true);
35 }; 37 };
36 $('kiosk-disable-bailout-cancel-button').onclick = this.handleCancel; 38 $('kiosk-disable-bailout-cancel-button').onclick = this.handleCancel;
37 }, 39 },
38 40
39 /** @override */ 41 /** @override */
40 handleCancel: function() { 42 handleCancel: function() {
41 OptionsPage.closeOverlay(); 43 OptionsPage.closeOverlay();
42 $('kiosk-disable-bailout-shortcut').checked = false; 44 $('kiosk-disable-bailout-shortcut').checked = false;
43 }, 45 },
44 46
(...skipping 13 matching lines...) Expand all
58 return true; 60 return true;
59 } 61 }
60 }; 62 };
61 63
62 // Export 64 // Export
63 return { 65 return {
64 KioskDisableBailoutConfirm: KioskDisableBailoutConfirm 66 KioskDisableBailoutConfirm: KioskDisableBailoutConfirm
65 }; 67 };
66 }); 68 });
67 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698