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

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

Issue 2861443003: MD Settings: Fix subpage visibility and add appearance page tests (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/downloads_page/downloads_page.js
diff --git a/chrome/browser/resources/settings/downloads_page/downloads_page.js b/chrome/browser/resources/settings/downloads_page/downloads_page.js
index 76bb8d7108f79afdc8ad965476364d99e3b73729..945af95668c5782a0be625bff08b9ce6d0de1f9f 100644
--- a/chrome/browser/resources/settings/downloads_page/downloads_page.js
+++ b/chrome/browser/resources/settings/downloads_page/downloads_page.js
@@ -33,7 +33,12 @@ Polymer({
* Dictionary defining page visibility.
* @type {!DownloadsPageVisibility}
*/
- pageVisibility: Object,
+ pageVisibility: {
+ type: Object,
+ value: function() {
dpapad 2017/05/02 23:45:52 Can we follow the approach of the previous CL, whe
stevenjb 2017/05/02 23:56:17 So, if we don't do this, we need to ensure that an
dpapad 2017/05/03 00:18:48 Hm, I think it actually made me realize that I sho
stevenjb 2017/05/03 19:58:40 Ah, yes, you are correct, that's wrong, and fixing
+ return {};
+ },
+ },
/** @private */
autoOpenDownloads_: {
@@ -56,6 +61,15 @@ Polymer({
this.browserProxy_.initializeDownloads();
},
+ /**
+ * @param {boolean|undefined} visibility
+ * @return {boolean}
+ * @private
+ */
+ showPage_: function(visibility) {
+ return visibility !== false;
+ },
+
/** @private */
selectDownloadLocation_: function() {
listenOnce(this, 'transitionend', function() {

Powered by Google App Engine
This is Rietveld 408576698