OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @param {MetadataCache} metadataCache Metadata cache service. | 7 * @param {MetadataCache} metadataCache Metadata cache service. |
8 * @param {cr.ui.ArrayDataModel} fileList The file list. | 8 * @param {cr.ui.ArrayDataModel} fileList The file list. |
9 * @param {boolean} showHidden If files starting with '.' are shown. | 9 * @param {boolean} showHidden If files starting with '.' are shown. |
10 */ | 10 */ |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 }; | 526 }; |
527 | 527 |
528 var getNextChunk = function() { | 528 var getNextChunk = function() { |
529 reader.readEntries(onChunkComplete, self.onError.bind(self)); | 529 reader.readEntries(onChunkComplete, self.onError.bind(self)); |
530 }; | 530 }; |
531 | 531 |
532 getNextChunk(); | 532 getNextChunk(); |
533 }; | 533 }; |
534 | 534 |
535 /** | 535 /** |
536 * Empty. | 536 * We get results for each directory in one go in scanDirectory_. |
537 */ | 537 */ |
538 DirectoryContentsLocalSearch.prototype.readNextChunk = function() { | 538 DirectoryContentsLocalSearch.prototype.readNextChunk = function() { |
539 this.onCompleted(); | |
540 }; | 539 }; |
OLD | NEW |