Index: chrome/browser/resources/settings/settings_main/settings_main.js |
diff --git a/chrome/browser/resources/settings/settings_main/settings_main.js b/chrome/browser/resources/settings/settings_main/settings_main.js |
index 5d9dd81c119ed6873abf7b03e5335da9e74d14f7..6fcdf96c907d468cb6821216648d669499b29868 100644 |
--- a/chrome/browser/resources/settings/settings_main/settings_main.js |
+++ b/chrome/browser/resources/settings/settings_main/settings_main.js |
@@ -93,6 +93,8 @@ Polymer({ |
this.listen(this, 'freeze-scroll', 'onFreezeScroll_'); |
var currentRoute = settings.getCurrentRoute(); |
this.hasExpandedSection_ = currentRoute && currentRoute.isSubpage(); |
+ if (!loadTimeData.getBoolean('androidAppsAllowed')) |
+ this.pageVisibility.androidApps = false; |
michaelpg
2016/12/01 20:15:34
does this work? i'm worried about a couple things:
stevenjb
2016/12/02 00:39:19
Ugh. The way we handle pageVisibility is confusing
michaelpg
2016/12/02 03:47:43
Yeah... I don't know if there's a non-sucky way of
|
}, |
/** @override */ |