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

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

Issue 593273002: Excludes settings which uses Ash from Athena. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 2 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.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * hasError: (boolean|undefined), 9 * hasError: (boolean|undefined),
10 * hasUnrecoverableError: (boolean|undefined), 10 * hasUnrecoverableError: (boolean|undefined),
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 1516
1517 /** 1517 /**
1518 * Enables or disables the Manage SSL Certificates button. 1518 * Enables or disables the Manage SSL Certificates button.
1519 * @private 1519 * @private
1520 */ 1520 */
1521 enableCertificateButton_: function(enabled) { 1521 enableCertificateButton_: function(enabled) {
1522 $('certificatesManageButton').disabled = !enabled; 1522 $('certificatesManageButton').disabled = !enabled;
1523 }, 1523 },
1524 1524
1525 /** 1525 /**
1526 * Enables or disables the ChromeOS display settings button.
1527 * @private
1528 */
1529 enableDisplayButton_: function(enabled) {
1530 if (cr.isChromeOS)
1531 $('display-options').disabled = !enabled;
1532 },
1533
1534 /**
1526 * Enables factory reset section. 1535 * Enables factory reset section.
1527 * @private 1536 * @private
1528 */ 1537 */
1529 enableFactoryResetSection_: function() { 1538 enableFactoryResetSection_: function() {
1530 $('factory-reset-section').hidden = false; 1539 $('factory-reset-section').hidden = false;
1531 }, 1540 },
1532 1541
1533 /** 1542 /**
1534 * Set the checked state of the metrics reporting checkbox. 1543 * Set the checked state of the metrics reporting checkbox.
1535 * @private 1544 * @private
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 handleSetTime_: function() { 1948 handleSetTime_: function() {
1940 chrome.send('showSetTime'); 1949 chrome.send('showSetTime');
1941 }, 1950 },
1942 }; 1951 };
1943 1952
1944 //Forward public APIs to private implementations. 1953 //Forward public APIs to private implementations.
1945 cr.makePublic(BrowserOptions, [ 1954 cr.makePublic(BrowserOptions, [
1946 'addBluetoothDevice', 1955 'addBluetoothDevice',
1947 'deleteCurrentProfile', 1956 'deleteCurrentProfile',
1948 'enableCertificateButton', 1957 'enableCertificateButton',
1958 'enableDisplayButton',
1949 'enableFactoryResetSection', 1959 'enableFactoryResetSection',
1950 'getCurrentProfile', 1960 'getCurrentProfile',
1951 'getStartStopSyncButton', 1961 'getStartStopSyncButton',
1952 'hideBluetoothSettings', 1962 'hideBluetoothSettings',
1953 'notifyInitializationComplete', 1963 'notifyInitializationComplete',
1954 'removeBluetoothDevice', 1964 'removeBluetoothDevice',
1955 'scrollToSection', 1965 'scrollToSection',
1956 'setAccountPictureManaged', 1966 'setAccountPictureManaged',
1957 'setWallpaperManaged', 1967 'setWallpaperManaged',
1958 'setAutoOpenFileTypesDisplayed', 1968 'setAutoOpenFileTypesDisplayed',
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 } 2046 }
2037 button.textContent = loadTimeData.getString(strId); 2047 button.textContent = loadTimeData.getString(strId);
2038 }; 2048 };
2039 } 2049 }
2040 2050
2041 // Export 2051 // Export
2042 return { 2052 return {
2043 BrowserOptions: BrowserOptions 2053 BrowserOptions: BrowserOptions
2044 }; 2054 };
2045 }); 2055 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/resources/options/chromeos/display_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698