Files.app: Remove duplication in entries with ENTRIES_CHANGED event.
commit7d2f01c5c77ca49fb61c5127ed6a98b67b22243f
authorhirono <hirono@chromium.org>
Thu, 25 Jun 2015 02:23:52 +0000 (24 19:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 25 Jun 2015 02:24:18 +0000 (25 02:24 +0000)
treea3147aa7ef0c5d53444341d05215cd83b0646fba
parent75fde6bba6071e3ab1535a3cf92eccce82a27787
Files.app: Remove duplication in entries with ENTRIES_CHANGED event.

FileOperationManager throttolles ENTRIES_CHANGED events so the event is
dispatched every 500ms. The entries property of ENTRIES_CHANGED event contains
all entries that is changed for the 500ms.

Because the entries list contains same entry multiple times, update UI for the
event is very slow.

BUG=503889
TEST=manually

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

Cr-Commit-Position: refs/heads/master@{#336073}
ui/file_manager/file_manager/background/js/file_operation_util.js