Index: chrome/browser/resources/md_downloads/manager.js |
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js |
index 563cd1b6daba5c34d43a4ff37ce3f9bbae0e9e52..a8c36b02207ce1c9cc6b151d346de4ab1016f3e7 100644 |
--- a/chrome/browser/resources/md_downloads/manager.js |
+++ b/chrome/browser/resources/md_downloads/manager.js |
@@ -18,12 +18,6 @@ cr.define('downloads', function() { |
}, |
}, |
- ready: function() { |
- window.addEventListener('resize', this.onResize_.bind(this)); |
- // onResize_() doesn't need to be called immediately here because it's |
- // guaranteed to be called again shortly when items are received. |
- }, |
- |
/** |
* @return {number} A guess at how many items could be visible at once. |
* @private |
@@ -73,16 +67,6 @@ cr.define('downloads', function() { |
}, |
/** @private */ |
- onResize_: function() { |
- // TODO(dbeam): expose <paper-header-panel>'s #mainContainer in Polymer. |
- var container = this.$.panel.$.mainContainer; |
- var scrollbarWidth = container.offsetWidth - container.clientWidth; |
- this.items_.forEach(function(item) { |
- item.scrollbarWidth = scrollbarWidth; |
- }); |
- }, |
- |
- /** @private */ |
rebuildFocusGrid_: function() { |
var activeElement = this.shadowRoot.activeElement; |
@@ -186,7 +170,6 @@ cr.define('downloads', function() { |
if (loadTimeData.getBoolean('allowDeletingHistory')) |
this.$.toolbar.downloadsShowing = this.hasDownloads_; |
- this.onResize_(); |
this.$.panel.classList.remove('loading'); |
var allReady = this.items_.map(function(i) { return i.readyPromise; }); |
@@ -209,8 +192,6 @@ cr.define('downloads', function() { |
var focusRow = this.focusGrid_.getRowForRoot(item.content); |
focusRow.getEquivalentElement(activeControl).focus(); |
} |
- |
- this.onResize_(); |
}, |
}); |