Index: chrome/browser/resources/options/managed_user_settings.js |
diff --git a/chrome/browser/resources/options/managed_user_settings.js b/chrome/browser/resources/options/managed_user_settings.js |
index fb51882ed4ad6f87603761f44b7bf6f5477ea957..9890c61fb5ffef486309459a593b5d34586628b3 100644 |
--- a/chrome/browser/resources/options/managed_user_settings.js |
+++ b/chrome/browser/resources/options/managed_user_settings.js |
@@ -83,21 +83,23 @@ cr.define('options', function() { |
var self = this; |
- $('lock-settings').onclick = function() { |
- chrome.send('setElevated', [false]); |
- // The managed user is currently authenticated, so don't wait for a |
- // callback to set the new authentication state since a reset to not |
- // elevated is done without showing the passphrase dialog. |
- self.authenticationState = ManagedUserAuthentication.UNAUTHENTICATED; |
- self.enableControls(false); |
- }; |
- |
- $('unlock-settings').onclick = function() { |
- if (self.authenticationState == ManagedUserAuthentication.CHECKING) |
- return; |
- self.authenticationState = ManagedUserAuthentication.CHECKING; |
- chrome.send('setElevated', [true]); |
- }; |
+ if (!cr.isChromeOS) { |
+ $('lock-settings').onclick = function() { |
+ chrome.send('setElevated', [false]); |
+ // The managed user is currently authenticated, so don't wait for a |
+ // callback to set the new authentication state since a reset to not |
+ // elevated is done without showing the passphrase dialog. |
+ self.authenticationState = ManagedUserAuthentication.UNAUTHENTICATED; |
+ self.enableControls(false); |
+ }; |
+ |
+ $('unlock-settings').onclick = function() { |
+ if (self.authenticationState == ManagedUserAuthentication.CHECKING) |
+ return; |
+ self.authenticationState = ManagedUserAuthentication.CHECKING; |
+ chrome.send('setElevated', [true]); |
+ }; |
+ } |
}, |
/** @override */ |