Chromium Code Reviews| 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 |
|
asanka
2012/09/17 16:48:14
Is nodeSince_ updated for all the download items a
benjhayden
2012/09/17 17:02:38
Yes, downloads_dom_handler.cc since_string uses Ti
asanka
2012/09/17 17:50:14
Yeah. I wasn't sure what the intended fix was. It
benjhayden
2012/09/17 18:09:42
I like car analogies, even though I know next to n
|
| + // 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_(); |
| }; |
| /** |