| Index: chrome/browser/resources/downloads/downloads.js
|
| diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
|
| index 9eac064f8ad58c9a78f704f8378cc97dc306d7a9..3f96887e1f41bcc816028732182ad277bb0756f3 100644
|
| --- a/chrome/browser/resources/downloads/downloads.js
|
| +++ b/chrome/browser/resources/downloads/downloads.js
|
| @@ -104,8 +104,13 @@ Downloads.prototype.updated = function(download) {
|
| } else {
|
| this.node_.appendChild(this.downloads_[id].node);
|
| }
|
| - this.updateDateDisplay_();
|
| }
|
| + // Download.prototype.update may change its nodeSince_ and nodeDate_, so
|
| + // update all the date displays.
|
| + // TODO(benjhayden) Only do this if its nodeSince_ or nodeDate_ actually did
|
| + // change since this may touch 150 elements and Downloads.prototype.updated
|
| + // may be called 150 times.
|
| + this.updateDateDisplay_();
|
| };
|
|
|
| /**
|
|
|