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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 149685: NNTP: Only show completed downloads.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 20749)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -91,6 +91,11 @@
function downloadsList(data) {
logEvent('received downloads');
+
+ // We should only show complete downloads.
+ data = data.filter(function(d) {
+ return d.state == 'COMPLETE';
+ });
data.length = Math.min(data.length, 5);
processData('#download-items', data);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698