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 Review URL: https://codereview.chromium.org/136783003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247946 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment