Index: chrome/browser/resources/history/history.js |
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js |
index e1a1b2c54abbc602ea60e1aae98995b5e1f3f37b..4cec356f7ba147a52efb496589b4c85e392852f6 100644 |
--- a/chrome/browser/resources/history/history.js |
+++ b/chrome/browser/resources/history/history.js |
@@ -1470,14 +1470,14 @@ function load() { |
if (loadTimeData.getBoolean('isManagedProfile')) { |
$('allow-selected').hidden = false; |
$('block-selected').hidden = false; |
- $('lock-unlock-button').classList.add('profile-is-managed'); |
- |
- $('lock-unlock-button').addEventListener('click', function(e) { |
- var isLocked = document.body.classList.contains('managed-user-locked'); |
- chrome.send('setManagedUserElevated', [isLocked]); |
- }); |
- |
- chrome.send('getManagedUserElevated'); |
+ if (!cr.isChromeOS) { |
+ $('lock-unlock-button').classList.add('profile-is-managed'); |
+ $('lock-unlock-button').addEventListener('click', function(e) { |
+ var isLocked = document.body.classList.contains('managed-user-locked'); |
+ chrome.send('setManagedUserElevated', [isLocked]); |
+ }); |
+ chrome.send('getManagedUserElevated'); |
+ } |
} |
var title = loadTimeData.getString('title'); |
@@ -1834,7 +1834,8 @@ function updateEntries(entries) { |
function managedUserElevated(isElevated) { |
if (isElevated) { |
document.body.classList.remove('managed-user-locked'); |
- $('lock-unlock-button').textContent = loadTimeData.getString('lockButton'); |
+ $('lock-unlock-button').textContent = |
+ loadTimeData.getString('lockButton'); |
} else { |
document.body.classList.add('managed-user-locked'); |
$('lock-unlock-button').textContent = |