Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: chrome/browser/resources/file_manager/js/directory_contents.js

Issue 10828091: Prevent premature 'scan-completed' events in local search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698