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

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: Disable android app section checkbox for managed profiles 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..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;
+ }
};
}

Powered by Google App Engine
This is Rietveld 408576698