Chromium Code Reviews| 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..ef3c4c74e521f96694f97c15e5a84ceab8854702 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. |
| + * Disables Android Apps checkbox for managed profiles. (ChromeOS only) |
|
bartfab (slow)
2016/02/16 15:23:00
Nit 1: s/profiles/users/
Nit 2: s/ChromeOS/Chrome
Polina Bondarenko
2016/02/25 15:28:30
Removed my changes, it works without explicit disa
bartfab (slow)
2016/03/02 14:45:40
What do you mean by "after reboot" - do you need t
|
| */ |
| - BrowserOptions.hideAndroidAppsSection = function() { |
| - var section = $('andorid-apps-section'); |
| - if (section) |
| - section.hidden = true; |
| + BrowserOptions.setAndroidAppsSectionAttributes = function(hidden, managed) { |
| + var section = $('android-apps-section'); |
| + if (section) { |
| + section.hidden = hidden; |
| + section.disabled = managed; |
|
bartfab (slow)
2016/02/16 15:23:00
The check box should disable itself when the pref
Polina Bondarenko
2016/02/25 15:28:30
Done.
|
| + } |
| }; |
| } |