Commit 79d2221f authored by Sergei Datsenko's avatar Sergei Datsenko Committed by Commit Bot

Reduce the number of search results for Drive.

Now it requests ridiculously excessive number of results. Tune it down to
just excessive.

BUG=chromium:902600

Change-Id: I300c345284d06a15f3375286ae32cd1de1e30645
Reviewed-on: https://chromium-review.googlesource.com/c/1322329Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Commit-Queue: Sergei Datsenko <dats@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605987}
parent b9499af0
...@@ -233,8 +233,7 @@ Object.freeze(DriveMetadataSearchContentScanner.SearchType); ...@@ -233,8 +233,7 @@ Object.freeze(DriveMetadataSearchContentScanner.SearchType);
DriveMetadataSearchContentScanner.prototype.scan = function( DriveMetadataSearchContentScanner.prototype.scan = function(
entriesCallback, successCallback, errorCallback) { entriesCallback, successCallback, errorCallback) {
chrome.fileManagerPrivate.searchDriveMetadata( chrome.fileManagerPrivate.searchDriveMetadata(
{query: '', types: this.searchType_, maxResults: 500}, {query: '', types: this.searchType_, maxResults: 100}, function(results) {
function(results) {
if (this.cancelled_) { if (this.cancelled_) {
errorCallback(util.createDOMError(util.FileError.ABORT_ERR)); errorCallback(util.createDOMError(util.FileError.ABORT_ERR));
return; return;
......
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