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() { |