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

Issue 1492273002: MD Downloads: limit the amount of downloads we send (Closed)

Created:
5 years ago by Dan Beam
Modified:
5 years ago
Reviewers:
asanka, esprehn
CC:
esprehn, arv+watch_chromium.org, asanka, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@new-dl-data
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Downloads: limit the amount of downloads we send This CL limits the number of downloads to 20 when: - first showing the download page - searching - undoing a "Clear all" It also ignores updates to items that aren't yet transmitted to the page and loads more when the user scrolls to the end of the list. R=asanka@chromium.org BUG=526577, 526583 Committed: https://crrev.com/cbdb02eed16dca135b0d5e5eca586977ebd55a3d Cr-Commit-Position: refs/heads/master@{#364502}

Patch Set 1 : self-review #

Total comments: 11

Patch Set 2 : asdf #

Total comments: 7

Messages

Total messages: 21 (7 generated)
Dan Beam
how does this seem as a general approach for limiting the number of downloads sent ...
5 years ago (2015-12-03 06:34:30 UTC) #3
asanka
This LG. Can the JS pull ranges as needed? https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc File chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc (right): https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc#newcode378 chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc:378: ...
5 years ago (2015-12-04 21:03:57 UTC) #4
Dan Beam
On 2015/12/04 21:03:57, asanka wrote: > This LG. Can the JS pull ranges as needed? ...
5 years ago (2015-12-04 22:52:35 UTC) #5
Dan Beam
https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc File chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc (right): https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc#newcode378 chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc:378: if (index > kChunkSize && index >= sent_to_page_) On ...
5 years ago (2015-12-05 00:31:43 UTC) #6
asanka
C++ Code LGTM. I have some questions and nits. Overall, I think the downloads_list_tracker could ...
5 years ago (2015-12-07 20:31:51 UTC) #7
asanka
https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/resources/md_downloads/action_service.js File chrome/browser/resources/md_downloads/action_service.js (right): https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/resources/md_downloads/action_service.js#newcode114 chrome/browser/resources/md_downloads/action_service.js:114: searchText_: '', On 2015/12/07 20:31:50, asanka wrote: > Why ...
5 years ago (2015-12-08 17:50:31 UTC) #8
Dan Beam
also added some unit tests for the chunking logic https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/resources/md_downloads/action_service.js File chrome/browser/resources/md_downloads/action_service.js (right): https://codereview.chromium.org/1492273002/diff/20001/chrome/browser/resources/md_downloads/action_service.js#newcode114 chrome/browser/resources/md_downloads/action_service.js:114: ...
5 years ago (2015-12-09 06:55:21 UTC) #9
asanka
LGTM. Though I don't consider myself qualified to review the JS/HTML changes.
5 years ago (2015-12-10 19:56:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492273002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492273002/60001
5 years ago (2015-12-10 20:20:13 UTC) #13
esprehn
https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js File chrome/browser/resources/md_downloads/action_service.js (right): https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js#newcode40 chrome/browser/resources/md_downloads/action_service.js:40: searchTerms_: [], this is static, the array is shred ...
5 years ago (2015-12-10 21:42:59 UTC) #15
Dan Beam
thanks esprehn@, CL coming your way https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js File chrome/browser/resources/md_downloads/action_service.js (right): https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js#newcode40 chrome/browser/resources/md_downloads/action_service.js:40: searchTerms_: [], On ...
5 years ago (2015-12-10 21:51:15 UTC) #16
Dan Beam
https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js File chrome/browser/resources/md_downloads/action_service.js (right): https://codereview.chromium.org/1492273002/diff/60001/chrome/browser/resources/md_downloads/action_service.js#newcode116 chrome/browser/resources/md_downloads/action_service.js:116: this.searchTerms_ = searchTerms; On 2015/12/10 21:51:15, Dan Beam wrote: ...
5 years ago (2015-12-10 22:08:41 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years ago (2015-12-10 22:19:52 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-10 22:20:32 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cbdb02eed16dca135b0d5e5eca586977ebd55a3d
Cr-Commit-Position: refs/heads/master@{#364502}

Powered by Google App Engine
This is Rietveld 408576698