Index: chrome/browser/resources/options/browser_options.js |
=================================================================== |
--- chrome/browser/resources/options/browser_options.js (revision 189066) |
+++ chrome/browser/resources/options/browser_options.js (working copy) |
@@ -467,6 +467,17 @@ |
} |
} |
+ // System section. |
+ if (!cr.isChromeOS) { |
+ $('gpu-mode-reset-restart').style.visibility = 'hidden'; |
Dan Beam
2013/03/21 02:03:52
you should change this to .hidden = true;
Zhenyao Mo
2013/03/21 21:52:53
Done.
|
+ $('gpu-mode-checkbox').onclick = function(event) { |
Dan Beam
2013/03/21 02:03:52
it seems the code as it is now is slightly subopti
Zhenyao Mo
2013/03/21 21:52:53
This is more complicated. Because a user can modi
Dan Beam
2013/03/21 22:19:27
pref notifications should change the checkbox alre
|
+ $('gpu-mode-reset-restart').style.visibility = 'visible'; |
Dan Beam
2013/03/21 02:03:52
and .hidden = false; to avoid invisible text causi
Zhenyao Mo
2013/03/21 21:52:53
Done.
|
+ }; |
+ $('gpu-mode-reset-restart-link').onclick = function(event) { |
Dan Beam
2013/03/21 02:03:52
event.preventDefault();
Zhenyao Mo
2013/03/21 21:52:53
Done.
|
+ chrome.send('restartBrowser'); |
+ }; |
+ } |
+ |
if (loadTimeData.getBoolean('managedUsersEnabled') && |
loadTimeData.getBoolean('profileIsManaged')) { |
$('managed-user-settings-section').hidden = false; |