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

Issue 136783003: Files.app; Serializes event handler calls for particular URLs. (Closed)

Created:
6 years, 10 months ago by hirono
Modified:
6 years, 10 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Files.app; Serializes event handler calls for particular URLs. Previously DriveSyncHandler#updateItem_ is called for 'in_progress' events and DriveSyncHandler#removeItem_ is called for 'completed' events. We should do updateItem_ and removeItem_ in this order but sometimes removeItem_ calls before updateItem_ is done becuase updateItem_ needs asynchronous opeartion. This CL serializes function calls of updateItem_ and removeItem_ by using Promise. BUG=339046 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247946

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Fixed. #

Total comments: 2

Patch Set 3 : Fixed. #

Total comments: 2

Patch Set 4 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
M chrome/browser/resources/file_manager/background/js/drive_sync_handler.js View 1 2 3 3 chunks +42 lines, -21 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hirono
PTAL the CL? Thanks!
6 years, 10 months ago (2014-01-29 09:51:43 UTC) #1
mtomasz
some nits https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode29 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:29: * Progressing file names. nit: Please update ...
6 years, 10 months ago (2014-01-29 10:34:28 UTC) #2
hirono
Thanks! https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode29 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:29: * Progressing file names. On 2014/01/29 10:34:29, mtomasz ...
6 years, 10 months ago (2014-01-30 04:51:47 UTC) #3
mtomasz
lgtm with nit https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/20001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode118 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:118: }.bind(this)); On 2014/01/30 04:51:47, hirono wrote: ...
6 years, 10 months ago (2014-01-30 05:11:12 UTC) #4
hirono
> My concern was, that the error in resolving was shown after removing, what is ...
6 years, 10 months ago (2014-01-30 05:35:43 UTC) #5
hirono
Thanks! https://codereview.chromium.org/136783003/diff/60001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/60001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode112 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:112: this.queue_.run(function(callback) { On 2014/01/30 05:11:13, mtomasz wrote: > ...
6 years, 10 months ago (2014-01-30 06:36:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/136783003/80001
6 years, 10 months ago (2014-01-30 06:37:22 UTC) #7
mtomasz
LGTM with a tiny nit. Thx1 https://codereview.chromium.org/136783003/diff/80001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/80001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode124 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:124: console.warn('Resolving URL ' ...
6 years, 10 months ago (2014-01-30 06:38:06 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 07:10:48 UTC) #9
hirono
Thanks! https://codereview.chromium.org/136783003/diff/80001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js File chrome/browser/resources/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/136783003/diff/80001/chrome/browser/resources/file_manager/background/js/drive_sync_handler.js#newcode124 chrome/browser/resources/file_manager/background/js/drive_sync_handler.js:124: console.warn('Resolving URL ' + status.fileUrl + 'is failed: ...
6 years, 10 months ago (2014-01-30 08:29:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/136783003/100001
6 years, 10 months ago (2014-01-30 08:30:39 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 13:38:25 UTC) #12
Message was sent while issue was closed.
Change committed as 247946

Powered by Google App Engine
This is Rietveld 408576698