Index: chrome/browser/chromeos/gdata/gdata_operations.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_operations.cc b/chrome/browser/chromeos/gdata/gdata_operations.cc |
index e0057eb392b823f9288ef945bfcda7c37497b55f..71d9166eca3268c182b3c875a9e63beb32fb5673 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_operations.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_operations.cc |
@@ -57,8 +57,10 @@ const char kUploadContentLength[] = "X-Upload-Content-Length: "; |
// almost always. Be careful not to use something too small on account that |
// have many items because server side 503 error might kick in. |
const int kMaxDocumentsPerFeed = 1000; |
+const int kMaxDocumentsPerSearchFeed = 50; |
#else |
const int kMaxDocumentsPerFeed = 1000; |
+const int kMaxDocumentsPerSearchFeed = 50; |
#endif |
const char kFeedField[] = "feed"; |
@@ -159,15 +161,18 @@ void GetDocumentsOperation::SetUrl(const GURL& url) { |
} |
GURL GetDocumentsOperation::GetURL() const { |
+ int max_docs = search_string_.empty() ? kMaxDocumentsPerFeed : |
+ kMaxDocumentsPerSearchFeed; |
+ |
if (!override_url_.is_empty()) |
return AddFeedUrlParams(override_url_, |
- kMaxDocumentsPerFeed, |
+ max_docs, |
0, |
- std::string()); |
+ search_string_); |
if (start_changestamp_ == 0) { |
return AddFeedUrlParams(FormatDocumentListURL(directory_resource_id_), |
- kMaxDocumentsPerFeed, |
+ max_docs, |
0, |
search_string_); |
} |