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

Issue 463783002: Combine consecutive entry-changed events into one. (Closed)

Created:
6 years, 4 months ago by fukino
Modified:
6 years, 4 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Combine consecutive entry-changed events into one. BUG=383232 TEST=ran browser_tests, tested the performance manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289899

Patch Set 1 #

Patch Set 2 : Combine consecutive entry-changed events into one. #

Total comments: 3

Patch Set 3 : Update handler name and unit test. #

Total comments: 8

Patch Set 4 : Fixed pointed bugs and handle errors. #

Total comments: 2

Patch Set 5 : Rebase and ensure that entries-changed event will be notified before finishing operation. #

Total comments: 3

Patch Set 6 : Simplify how to make the promises. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -45 lines) Patch
M chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M ui/file_manager/file_manager/background/js/file_operation_manager.js View 1 2 3 4 3 chunks +38 lines, -5 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/directory_model.js View 1 2 3 4 5 2 chunks +26 lines, -22 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 4 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
fukino
@hirono - could you take a look? I wonder if it is right to combine ...
6 years, 4 months ago (2014-08-12 07:26:42 UTC) #1
fukino
https://codereview.chromium.org/463783002/diff/20001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/463783002/diff/20001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode597 ui/file_manager/file_manager/foreground/js/directory_model.js:597: this.getFileList().push(entriesToAdd); This line is what I want to do. ...
6 years, 4 months ago (2014-08-12 07:29:10 UTC) #2
hirono
https://codereview.chromium.org/463783002/diff/20001/ui/file_manager/file_manager/foreground/js/file_manager.js File ui/file_manager/file_manager/foreground/js/file_manager.js (right): https://codereview.chromium.org/463783002/diff/20001/ui/file_manager/file_manager/foreground/js/file_manager.js#newcode408 ui/file_manager/file_manager/foreground/js/file_manager.js:408: 'entries-changed', this.onEntryChangedBound_); nit: Could you update the handler's name ...
6 years, 4 months ago (2014-08-12 08:45:43 UTC) #3
fukino
Fixed handler names, and updated a unit test which I forgot to upload. Could you ...
6 years, 4 months ago (2014-08-12 09:35:43 UTC) #4
hirono
https://codereview.chromium.org/463783002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/463783002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode575 ui/file_manager/file_manager/foreground/js/directory_model.js:575: var onEntriesCreated = function(entries) { Maybe we don't need ...
6 years, 4 months ago (2014-08-12 10:43:13 UTC) #5
fukino
Thank you for comments and I'm sorry for late update. https://codereview.chromium.org/463783002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/463783002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode575 ...
6 years, 4 months ago (2014-08-15 09:12:31 UTC) #6
hirono
https://codereview.chromium.org/463783002/diff/60001/chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js File chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js (right): https://codereview.chromium.org/463783002/diff/60001/chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js#newcode242 chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js:242: return event.type === 'entries-changed' && Sorry I added more ...
6 years, 4 months ago (2014-08-15 09:13:59 UTC) #7
fukino
Rebased, and update FileOperationManager.EventRouter.prototype.sendProgressEvent() to pass the test. (Please see the comment in FileOperationManager.EventRouter.prototype.sendProgressEvent()). https://codereview.chromium.org/463783002/diff/60001/chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js ...
6 years, 4 months ago (2014-08-15 10:22:28 UTC) #8
hirono
lgtm with a nit! https://codereview.chromium.org/463783002/diff/80001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/463783002/diff/80001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode579 ui/file_manager/file_manager/foreground/js/directory_model.js:579: parentPromises.push(new Promise(function(resolve, reject) { nit: ...
6 years, 4 months ago (2014-08-15 10:28:42 UTC) #9
fukino
https://codereview.chromium.org/463783002/diff/80001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/463783002/diff/80001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode579 ui/file_manager/file_manager/foreground/js/directory_model.js:579: parentPromises.push(new Promise(function(resolve, reject) { On 2014/08/15 10:28:42, hirono wrote: ...
6 years, 4 months ago (2014-08-15 10:46:23 UTC) #10
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 4 months ago (2014-08-15 11:53:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/463783002/100001
6 years, 4 months ago (2014-08-15 11:55:04 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 4 months ago (2014-08-15 13:51:28 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 16:21:40 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (100001) as 289899

Powered by Google App Engine
This is Rietveld 408576698