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

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

Issue 2873853002: arc: Handle ARC events in MD Settings (Closed)
Patch Set: fix test Created 3 years, 7 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
index 9dae8ffd8403d2b9a06e8160b58746fcc3fe1d1c..bb987f745389b2aaa318f53d9ee2592271589dea 100644
--- a/chrome/browser/resources/settings/android_apps_page/android_apps_subpage.js
+++ b/chrome/browser/resources/settings/android_apps_page/android_apps_subpage.js
@@ -17,7 +17,10 @@ Polymer({
prefs: Object,
/** @private {!AndroidAppsInfo|undefined} */
- androidAppsInfo: Object,
+ androidAppsInfo: {
+ type: Object,
+ observer: 'onAndroidAppsInfoUpdate_',
+ },
/** @private */
dialogBody_: {
@@ -38,6 +41,14 @@ Polymer({
this.browserProxy_ = settings.AndroidAppsBrowserProxyImpl.getInstance();
},
+ /**
+ * @private
+ */
+ onAndroidAppsInfoUpdate_: function() {
+ if (!this.androidAppsInfo.playStoreEnabled)
+ settings.navigateToPreviousRoute();
+ },
+
/**
* @param {Event} event
* @private

Powered by Google App Engine
This is Rietveld 408576698