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

Issue 329083002: Modify AsyncUtil.Aggregation to be able to keep calling in limited rate. (Closed)

Created:
6 years, 6 months ago by fukino
Modified:
6 years, 6 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Modify AsyncUtil.Aggregation to be able to keep calling in limited rate. I changed behavior of AsyncUtil.Aggregation and changed its name to AsyncUtil.RateLimiter. Previously, AsyncUtil.Aggregation aggregates consecutive calls as much as possible. To keep update the UI, from now the closure will be called as much as possible keeping given minimum interval. BUG=373627 TEST=manually change the window size continuously. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276703

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove opt_aggregate flag. #

Total comments: 2

Patch Set 3 : Seal the newed RateLimiter object. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -36 lines) Patch
M ui/file_manager/file_manager/common/js/async_util.js View 1 2 2 chunks +37 lines, -30 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_grid.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_table.js View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fukino
@mtomasz - Could you take a look?
6 years, 6 months ago (2014-06-11 09:52:55 UTC) #1
mtomasz
https://codereview.chromium.org/329083002/diff/1/ui/file_manager/file_manager/common/js/async_util.js File ui/file_manager/file_manager/common/js/async_util.js (right): https://codereview.chromium.org/329083002/diff/1/ui/file_manager/file_manager/common/js/async_util.js#newcode263 ui/file_manager/file_manager/common/js/async_util.js:263: * @param {boolean=} opt_aggregate If true, consecutive calls are ...
6 years, 6 months ago (2014-06-12 00:45:48 UTC) #2
fukino
https://codereview.chromium.org/329083002/diff/1/ui/file_manager/file_manager/common/js/async_util.js File ui/file_manager/file_manager/common/js/async_util.js (right): https://codereview.chromium.org/329083002/diff/1/ui/file_manager/file_manager/common/js/async_util.js#newcode263 ui/file_manager/file_manager/common/js/async_util.js:263: * @param {boolean=} opt_aggregate If true, consecutive calls are ...
6 years, 6 months ago (2014-06-12 04:41:49 UTC) #3
mtomasz
LGTM with a nit! https://codereview.chromium.org/329083002/diff/20001/ui/file_manager/file_manager/common/js/async_util.js File ui/file_manager/file_manager/common/js/async_util.js (right): https://codereview.chromium.org/329083002/diff/20001/ui/file_manager/file_manager/common/js/async_util.js#newcode291 ui/file_manager/file_manager/common/js/async_util.js:291: this.lastRunTime_ = 0; nit: How ...
6 years, 6 months ago (2014-06-12 04:55:20 UTC) #4
fukino
Thanks! https://codereview.chromium.org/329083002/diff/20001/ui/file_manager/file_manager/common/js/async_util.js File ui/file_manager/file_manager/common/js/async_util.js (right): https://codereview.chromium.org/329083002/diff/20001/ui/file_manager/file_manager/common/js/async_util.js#newcode291 ui/file_manager/file_manager/common/js/async_util.js:291: this.lastRunTime_ = 0; On 2014/06/12 04:55:20, mtomasz wrote: ...
6 years, 6 months ago (2014-06-12 05:41:40 UTC) #5
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 6 months ago (2014-06-12 05:41:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/329083002/40001
6 years, 6 months ago (2014-06-12 05:43:16 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 16:25:11 UTC) #8
Message was sent while issue was closed.
Change committed as 276703

Powered by Google App Engine
This is Rietveld 408576698