Commit c4310f1a authored by yoshiki@chromium.org's avatar yoshiki@chromium.org

Files.app: Fix the bug on search

On search on Files.app, it fails due to exception, because of the regression caused by r275418. This patch fixes it.

BUG=382332
TEST=manually tested

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275791 0039d316-1c4b-4281-b951-d872f2087c98
parent 10af0395
......@@ -963,7 +963,6 @@ DirectoryModel.prototype.search = function(query,
this.currentFileListContext_,
currentDirEntry);
this.clearAndScan_(newDirContents,
sequence,
callback);
} else {
callback();
......@@ -982,7 +981,6 @@ DirectoryModel.prototype.search = function(query,
this.onClearSearch_ = onClearSearch;
this.addEventListener('scan-completed', this.onSearchCompleted_);
this.clearAndScan_(newDirContents,
sequence,
callback);
}.bind(this, this.changeDirectorySequence_));
};
......
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