| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |