| Index: chrome/browser/resources/options/browser_options.js
|
| ===================================================================
|
| --- chrome/browser/resources/options/browser_options.js (revision 189907)
|
| +++ chrome/browser/resources/options/browser_options.js (working copy)
|
| @@ -42,7 +42,7 @@
|
| * Track if page initialization is complete. All C++ UI handlers have the
|
| * chance to manipulate page content within their InitializePage methods.
|
| * This flag is set to true after all initializers have been called.
|
| - * @type (boolean}
|
| + * @type {boolean}
|
| * @private
|
| */
|
| initializationComplete_: false,
|
| @@ -467,6 +467,22 @@
|
| }
|
| }
|
|
|
| + // System section.
|
| + if (!cr.isChromeOS) {
|
| + var updateGpuRestartButton = function() {
|
| + $('gpu-mode-reset-restart').hidden =
|
| + loadTimeData.getBoolean('gpuEnabledAtStart') ==
|
| + $('gpu-mode-checkbox').checked;
|
| + };
|
| + Preferences.getInstance().addEventListener(
|
| + $('gpu-mode-checkbox').getAttribute('pref'),
|
| + updateGpuRestartButton);
|
| + $('gpu-mode-reset-restart-button').onclick = function(event) {
|
| + chrome.send('restartBrowser');
|
| + };
|
| + updateGpuRestartButton();
|
| + }
|
| +
|
| if (loadTimeData.getBoolean('managedUsersEnabled') &&
|
| loadTimeData.getBoolean('profileIsManaged')) {
|
| $('managed-user-settings-section').hidden = false;
|
|
|