DescriptionSerialize reading and writing in the import history storage.
Concurrently writing with multiple FileWriters causes broken files. This patch
wraps both reading a writing with a queue made of chained promises.
TEST=browser_tests: *ImportHistoryTest*
BUG=None
Committed: https://crrev.com/c51c835b762f3bd0c47b2b7ea47450f2ac1abfe6
Cr-Commit-Position: refs/heads/master@{#312999}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Added catch to write(). #Patch Set 3 : Rebased. #
Messages
Total messages: 23 (11 generated)
|