Commit 8ad2b71e authored by hirono's avatar hirono Committed by Commit bot

Files.app: Fix DirectoryModel#partialUpdate so that it does not ignore changes.

Previously DirectoryModel#partialUpdate ignores changes if the function is
called multiple times during the previous request is being procecced.

BUG=417163
TEST=Repo steps of the bug.

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

Cr-Commit-Position: refs/heads/master@{#297381}
parent 928fb4d6
...@@ -468,8 +468,7 @@ DirectoryModel.prototype.partialUpdate_ = ...@@ -468,8 +468,7 @@ DirectoryModel.prototype.partialUpdate_ =
onPreviousScanCompleted); onPreviousScanCompleted);
// Run the update asynchronously. // Run the update asynchronously.
Promise.resolve().then(function() { Promise.resolve().then(function() {
if (!this.runningScan_) this.partialUpdate_(changedEntries, removedUrls);
this.partialUpdate_(changedEntries, removedUrls);
}.bind(this)); }.bind(this));
}.bind(this); }.bind(this);
previousScan.addEventListener('scan-completed', onPreviousScanCompleted); previousScan.addEventListener('scan-completed', onPreviousScanCompleted);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment