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

Unified Diff: chrome/browser/resources/settings/android_apps_page/android_apps_page.js

Issue 2947033002: Settings: PLay Store: Disable 'turn on' if policy enforced (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « chrome/browser/resources/settings/android_apps_page/android_apps_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/android_apps_page/android_apps_page.js
diff --git a/chrome/browser/resources/settings/android_apps_page/android_apps_page.js b/chrome/browser/resources/settings/android_apps_page/android_apps_page.js
index e5f9cba60d51c94fd615b5d4ca179dbce789e293..68ade2daae5d5ceaf7e4ac57a1422dd286de6ed4 100644
--- a/chrome/browser/resources/settings/android_apps_page/android_apps_page.js
+++ b/chrome/browser/resources/settings/android_apps_page/android_apps_page.js
@@ -75,6 +75,11 @@ Polymer({
event.stopPropagation();
},
+ /** @return {boolean} */
+ isEnforced_: function(pref) {
+ return pref.enforcement == chrome.settingsPrivate.Enforcement.ENFORCED;
+ },
+
/** @private */
onSubpageTap_: function() {
if (this.androidAppsInfo_.playStoreEnabled)
« no previous file with comments | « chrome/browser/resources/settings/android_apps_page/android_apps_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698