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

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: . 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..55b93045f61acb269b4c97a63680ce59d4015e54 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -108,7 +108,22 @@ void DocumentsService::GetDocuments(const GURL& url,
directory_resource_id,
callback);
if (!url.is_empty())
- operation->SetUrl(url);
+ operation->SetURL(url);
+ runner_->StartOperationWithRetry(operation);
+}
+
+void DocumentsService::GetChangelist(const GURL& url,
+ int64 start_changestamp,
+ const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ VLOG(1) << "GetChangeList: start_changestamp = " << start_changestamp;
+
+ GetChangelistOperation* operation =
+ new GetChangelistOperation(operation_registry(),
+ start_changestamp,
+ callback);
+ if (!url.is_empty())
+ operation->SetURL(url);
runner_->StartOperationWithRetry(operation);
}

Powered by Google App Engine
This is Rietveld 408576698