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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.cc

Issue 10836125: Add GetChangelist operation for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SetURL() and specify url in the constructor. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_documents_service.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.cc b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
index 7f1f27e26b6c1e95fca1eae17d992baefee90a24..355dd1937701cd6f2e4a0608d363ea86d895ac40 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -103,12 +103,24 @@ void DocumentsService::GetDocuments(const GURL& url,
GetDocumentsOperation* operation =
new GetDocumentsOperation(operation_registry(),
+ url,
start_changestamp,
search_query,
directory_resource_id,
callback);
- if (!url.is_empty())
- operation->SetUrl(url);
+ runner_->StartOperationWithRetry(operation);
+}
+
+void DocumentsService::GetChangelist(const GURL& url,
+ int64 start_changestamp,
+ const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ GetChangelistOperation* operation =
+ new GetChangelistOperation(operation_registry(),
+ url,
+ start_changestamp,
+ callback);
runner_->StartOperationWithRetry(operation);
}
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_documents_service.h ('k') | chrome/browser/chromeos/gdata/gdata_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698