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

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

Issue 2798753002: Revert of MD Settings: Google Play Store: Add subpage and polish (Closed)
Patch Set: Created 3 years, 8 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/settings/android_apps_page/android_apps_subpage.js
diff --git a/chrome/browser/resources/settings/android_apps_page/android_apps_subpage.js b/chrome/browser/resources/settings/android_apps_page/android_apps_subpage.js
deleted file mode 100644
index 8f506fb62d1291b33bbc5742f45adf99a5c7da38..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/android_apps_page/android_apps_subpage.js
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview
- * 'android-apps-subpage' is the settings subpage for managing android apps.
- */
-
-Polymer({
- is: 'settings-android-apps-subpage',
-
- behaviors: [I18nBehavior, PrefsBehavior],
-
- properties: {
- /** Preferences state. */
- prefs: Object,
-
- /** @private {!AndroidAppsInfo|undefined} */
- androidAppsInfo: Object,
-
- /** @private */
- dialogBody_: {
- type: String,
- value: function() {
- return this.i18nAdvanced(
- 'androidAppsDisableDialogMessage',
- {substitutions: [], tags: ['br']});
- }
- }
- },
-
- /** @private {?settings.AndroidAppsBrowserProxy} */
- browserProxy_: null,
-
- /** @override */
- created: function() {
- this.browserProxy_ = settings.AndroidAppsBrowserProxyImpl.getInstance();
- },
-
- /**
- * @param {Event} event
- * @private
- */
- onManageAndroidAppsKeydown_: function(event) {
- if (event.key != 'Enter' && event.key != ' ')
- return;
- this.browserProxy_.showAndroidAppsSettings(true /** keyboardAction */);
- event.stopPropagation();
- },
-
- /** @private */
- onManageAndroidAppsTap_: function(event) {
- this.browserProxy_.showAndroidAppsSettings(false /** keyboardAction */);
- },
-
- /**
- * @return {boolean}
- * @private
- */
- allowRemove_: function() {
- return this.prefs.arc.enabled.enforcement !=
- chrome.settingsPrivate.Enforcement.ENFORCED;
- },
-
- /**
- * Shows a confirmation dialog when disabling android apps.
- * @param {Event} event
- * @private
- */
- onRemoveTap_: function(event) {
- this.$.confirmDisableDialog.showModal();
- },
-
- /**
- * Handles the shared proxy confirmation dialog 'Confirm' button.
- * @private
- */
- onConfirmDisableDialogConfirm_: function() {
- this.setPrefValue('arc.enabled', false);
- this.$.confirmDisableDialog.close();
- settings.navigateToPreviousRoute();
- },
-
- /**
- * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel
- * event.
- * @private
- */
- onConfirmDisableDialogCancel_: function() {
- this.$.confirmDisableDialog.close();
- },
-});

Powered by Google App Engine
This is Rietveld 408576698