Chromium Code Reviews| Index: chrome/browser/resources/options/browser_options.js |
| =================================================================== |
| --- chrome/browser/resources/options/browser_options.js (revision 189678) |
| +++ 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,20 @@ |
| } |
| } |
| + // System section. |
| + if (!cr.isChromeOS) { |
| + $('gpu-mode-reset-restart').hidden = true; |
|
Dan Beam
2013/03/22 00:34:40
^ update this when you open the page, IMO
|
| + $('gpu-mode-checkbox').onclick = function(event) { |
|
Dan Beam
2013/03/22 00:34:40
s/onclick/onchange/, unfortunately this isn't work
|
| + $('gpu-mode-reset-restart').hidden = |
| + loadTimeData.getBoolean('gpuModeAtStart') == |
|
Dan Beam
2013/03/22 00:34:40
gpuEnabledAtStart might be a better name (i was ju
|
| + event.currentTarget.checked; |
| + }; |
| + $('gpu-mode-reset-restart-link').onclick = function(event) { |
| + event.preventDefault(); |
| + chrome.send('restartBrowser'); |
| + }; |
| + } |
| + |
| if (loadTimeData.getBoolean('managedUsersEnabled') && |
| loadTimeData.getBoolean('profileIsManaged')) { |
| $('managed-user-settings-section').hidden = false; |