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

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

Issue 15966004: cros: Move kiosk settings to extensions page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix space Created 7 years, 6 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 (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.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 }; 433 };
434 } 434 }
435 435
436 // Factory reset section (CrOS only). 436 // Factory reset section (CrOS only).
437 if (cr.isChromeOS) { 437 if (cr.isChromeOS) {
438 $('factory-reset-restart').onclick = function(event) { 438 $('factory-reset-restart').onclick = function(event) {
439 OptionsPage.navigateToPage('factoryResetData'); 439 OptionsPage.navigateToPage('factoryResetData');
440 }; 440 };
441 } 441 }
442 442
443 // Kiosk section (CrOS only).
444 if (cr.isChromeOS) {
445 if (loadTimeData.getBoolean('enableKioskSection')) {
446 $('kiosk-section').hidden = false;
447
448 $('manage-kiosk-apps-button').onclick = function(event) {
449 OptionsPage.navigateToPage('kioskAppsOverlay');
450 };
451 }
452 }
453
454 // System section. 443 // System section.
455 if (!cr.isChromeOS) { 444 if (!cr.isChromeOS) {
456 var updateGpuRestartButton = function() { 445 var updateGpuRestartButton = function() {
457 $('gpu-mode-reset-restart').hidden = 446 $('gpu-mode-reset-restart').hidden =
458 loadTimeData.getBoolean('gpuEnabledAtStart') == 447 loadTimeData.getBoolean('gpuEnabledAtStart') ==
459 $('gpu-mode-checkbox').checked; 448 $('gpu-mode-checkbox').checked;
460 }; 449 };
461 Preferences.getInstance().addEventListener( 450 Preferences.getInstance().addEventListener(
462 $('gpu-mode-checkbox').getAttribute('pref'), 451 $('gpu-mode-checkbox').getAttribute('pref'),
463 updateGpuRestartButton); 452 updateGpuRestartButton);
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 BrowserOptions.getLoggedInUsername = function() { 1470 BrowserOptions.getLoggedInUsername = function() {
1482 return BrowserOptions.getInstance().username_; 1471 return BrowserOptions.getInstance().username_;
1483 }; 1472 };
1484 } 1473 }
1485 1474
1486 // Export 1475 // Export
1487 return { 1476 return {
1488 BrowserOptions: BrowserOptions 1477 BrowserOptions: BrowserOptions
1489 }; 1478 };
1490 }); 1479 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698