Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4048)

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: andorid->android Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
+ }
};
}

Powered by Google App Engine
This is Rietveld 408576698