summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 16:08:11 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 16:08:11 +0000
commit05ec574bfbace88f852160b08e9238e6fc7be75a (patch)
tree9ccf8b80741c7bec6fb94183ad7add6e9d19ea72 /google_apis
parentbd2eedf25e7708f903e0d2c20e8f27cd47f544ac (diff)
downloadchromium_src-05ec574bfbace88f852160b08e9238e6fc7be75a.zip
chromium_src-05ec574bfbace88f852160b08e9238e6fc7be75a.tar.gz
chromium_src-05ec574bfbace88f852160b08e9238e6fc7be75a.tar.bz2
drive: Request file lists with a number of multiples of 100
Drive server seems to show the best performance when returning entries with a number of multiples of 100 BUG=347871 TEST=unit_tests Review URL: https://codereview.chromium.org/182823003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rw-r--r--google_apis/drive/gdata_wapi_url_generator.cc2
-rw-r--r--google_apis/drive/gdata_wapi_url_generator_unittest.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/google_apis/drive/gdata_wapi_url_generator.cc b/google_apis/drive/gdata_wapi_url_generator.cc
index c1263b7..e5c5ce8 100644
--- a/google_apis/drive/gdata_wapi_url_generator.cc
+++ b/google_apis/drive/gdata_wapi_url_generator.cc
@@ -47,7 +47,7 @@ const char kInitiateUploadExistingFileURLPrefix[] =
// server. Be careful not to use something too large because it makes the
// "fetched N items" UI less responsive.
const int kMaxDocumentsPerFeed = 500;
-const int kMaxDocumentsPerSearchFeed = 50;
+const int kMaxDocumentsPerSearchFeed = 100;
// URL requesting documents list of changes to documents collections.
const char kGetChangesListURL[] = "/feeds/default/private/changes";
diff --git a/google_apis/drive/gdata_wapi_url_generator_unittest.cc b/google_apis/drive/gdata_wapi_url_generator_unittest.cc
index 56e884a..0dc74fd 100644
--- a/google_apis/drive/gdata_wapi_url_generator_unittest.cc
+++ b/google_apis/drive/gdata_wapi_url_generator_unittest.cc
@@ -85,7 +85,7 @@ TEST_F(GDataWapiUrlGeneratorTest, GenerateResourceListUrl) {
// and "q" parameter is added.
EXPECT_EQ("https://docs.google.com/feeds/default/private/full"
"?v=3&alt=json&showroot=true&showfolders=true&include-shared=true"
- "&max-results=50&q=foo",
+ "&max-results=100&q=foo",
url_generator_.GenerateResourceListUrl(
GURL(), // override_url,
0, // start_changestamp,