Fix possible race with batch updates in Files app.
commit8176b73b02e137a3c06afb7382a0a277338cc5ea
authormtomasz <mtomasz@chromium.org>
Fri, 12 Sep 2014 05:44:14 +0000 (11 22:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Sep 2014 05:46:30 +0000 (12 05:46 +0000)
tree9c77b0564ddd91c111381d1047c4b3dc4bed111f
parentc9cd3004692f326e44f8907bf9d2f7cd9deb162b
Fix possible race with batch updates in Files app.

It's unlikely but possible that beginBatchUpdates() is executed on another list
thatn endBatchUpdates(). As a result, one of the lists will become unusable.

TEST=Tested manually with a fakely added delay for end-update-files.
BUG=234039

Review URL: https://codereview.chromium.org/560273002

Cr-Commit-Position: refs/heads/master@{#294545}
ui/file_manager/file_manager/foreground/js/file_manager.js