Dispatch directory-changed event before rescan starts.
commit3027da7aee006ad04e084690d6ea410a31969728
authoryawano <yawano@chromium.org>
Thu, 19 Feb 2015 10:31:20 +0000 (19 02:31 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 10:32:12 +0000 (19 10:32 +0000)
tree4f786cc50f1c5e04030f7ac9b4d3c43851b235cd
parentc67ba3fdd2cd36705c6a837bc14f910d3af46cda
Dispatch directory-changed event before rescan starts.

Directory rescan sometimes uses up IO and blocks other IOs which are necessary
for updating the top-left breadcrumb. While this CL does not solve the real
cause of the issue, this CL mitigates the problem by dispatching event earlier.

BUG=459864
TEST=manually tested as described in the issue

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

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