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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'android-apps-page' is the settings page for enabling android apps. 7 * 'android-apps-page' is the settings page for enabling android apps.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 /** 69 /**
70 * @param {Event} event 70 * @param {Event} event
71 * @private 71 * @private
72 */ 72 */
73 onEnableTap_: function(event) { 73 onEnableTap_: function(event) {
74 this.setPrefValue('arc.enabled', true); 74 this.setPrefValue('arc.enabled', true);
75 event.stopPropagation(); 75 event.stopPropagation();
76 }, 76 },
77 77
78 /** @return {boolean} */
79 isEnforced_: function(pref) {
80 return pref.enforcement == chrome.settingsPrivate.Enforcement.ENFORCED;
81 },
82
78 /** @private */ 83 /** @private */
79 onSubpageTap_: function() { 84 onSubpageTap_: function() {
80 if (this.androidAppsInfo_.playStoreEnabled) 85 if (this.androidAppsInfo_.playStoreEnabled)
81 settings.navigateTo(settings.Route.ANDROID_APPS_DETAILS); 86 settings.navigateTo(settings.Route.ANDROID_APPS_DETAILS);
82 }, 87 },
83 }); 88 });
OLDNEW
« 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