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

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

Issue 2964293002: CrOS Settings: Add skeleton page for multidevice section. (Closed)
Patch Set: Sync and rebase Created 3 years, 5 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/basic_page/basic_page.js
diff --git a/chrome/browser/resources/settings/basic_page/basic_page.js b/chrome/browser/resources/settings/basic_page/basic_page.js
index 1f386cc6218091f2963d0357ee84a543d012dbb0..d2c1e42107a74ccd36016b36fa190167ce9668f9 100644
--- a/chrome/browser/resources/settings/basic_page/basic_page.js
+++ b/chrome/browser/resources/settings/basic_page/basic_page.js
@@ -18,9 +18,13 @@ Polymer({
notify: true,
},
+ // <if expr="chromeos">
showAndroidApps: Boolean,
+ showMultidevice: Boolean,
+
havePlayStoreApp: Boolean,
+ // </if>
/** @type {!AndroidAppsInfo|undefined} */
androidAppsInfo: Object,
@@ -219,6 +223,16 @@ Polymer({
return true;
},
+ /**
+ * @return {boolean} Whether to show the multidevice settings page.
+ * @private
+ */
+ shouldShowMultidevice_: function() {
+ var visibility = /** @type {boolean|undefined} */ (
+ this.get('pageVisibility.multidevice'));
+ return this.showMultidevice && this.showPage_(visibility);
+ },
+
/**
* Hides everything but the newly expanded subpage.
* @private

Powered by Google App Engine
This is Rietveld 408576698