Index: chrome/browser/resources/options/browser_options.js |
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
index faff91ed83e6f5ef15fbb7b1ae9caa978dc596b6..6a335577e9b656799e05cc6e837580fc321c8a5b 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -2319,12 +2319,15 @@ cr.define('options', function() { |
}; |
/** |
- * Hides Android Apps settings when they are not available (ChromeOS only). |
+ * Hides Android Apps settings when they are not available and |
+ * disables it for managed profiles (ChromeOS only) |
Thiemo Nagel
2016/02/16 10:37:16
Nit: Please keep the period at the end of the sent
Polina Bondarenko
2016/02/16 14:05:02
Fixed.
|
*/ |
- BrowserOptions.hideAndroidAppsSection = function() { |
+ BrowserOptions.setAndroidAppsSectionAttributes = function(hidden, managed) { |
var section = $('andorid-apps-section'); |
Thiemo Nagel
2016/02/16 10:37:16
"andorid" doesn't look right.
Polina Bondarenko
2016/02/16 14:05:02
Done.
|
- if (section) |
- section.hidden = true; |
+ if (section) { |
+ section.hidden = hidden; |
+ section.disabled = managed; |
+ } |
}; |
} |