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

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

Issue 234583003: Add a command line switch --enable-consumer-management. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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.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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator;
10 10
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 !loadTimeData.getBoolean('multiple_profiles'); 390 !loadTimeData.getBoolean('multiple_profiles');
391 } 391 }
392 392
393 // Network section. 393 // Network section.
394 if (!cr.isChromeOS) { 394 if (!cr.isChromeOS) {
395 $('proxiesConfigureButton').onclick = function(event) { 395 $('proxiesConfigureButton').onclick = function(event) {
396 chrome.send('showNetworkProxySettings'); 396 chrome.send('showNetworkProxySettings');
397 }; 397 };
398 } 398 }
399 399
400 // Security section.
401 if (cr.isChromeOS &&
402 loadTimeData.getBoolean('consumerManagementEnabled')) {
403 $('security-section').hidden = false;
404 $('consumer-management-enroll-button').onclick = function(event) {
405 chrome.send('enrollConsumerManagement');
406 };
407 }
408
400 // Easy Unlock section. 409 // Easy Unlock section.
401 if (loadTimeData.getBoolean('easyUnlockEnabled')) { 410 if (loadTimeData.getBoolean('easyUnlockEnabled')) {
402 $('easy-unlock-section').hidden = false; 411 $('easy-unlock-section').hidden = false;
403 $('easy-unlock-setup-button').onclick = function(event) { 412 $('easy-unlock-setup-button').onclick = function(event) {
404 chrome.send('launchEasyUnlockSetup'); 413 chrome.send('launchEasyUnlockSetup');
405 }; 414 };
406 } 415 }
407 416
408 // Web Content section. 417 // Web Content section.
409 $('fontSettingsCustomizeFontsButton').onclick = function(event) { 418 $('fontSettingsCustomizeFontsButton').onclick = function(event) {
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 BrowserOptions.getLoggedInUsername = function() { 1799 BrowserOptions.getLoggedInUsername = function() {
1791 return BrowserOptions.getInstance().username_; 1800 return BrowserOptions.getInstance().username_;
1792 }; 1801 };
1793 } 1802 }
1794 1803
1795 // Export 1804 // Export
1796 return { 1805 return {
1797 BrowserOptions: BrowserOptions 1806 BrowserOptions: BrowserOptions
1798 }; 1807 };
1799 }); 1808 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698