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

Unified Diff: google_apis/drive/drive_api_requests.cc

Issue 1135353004: Revert of Drive: Let DriveUploader use batch request API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: google_apis/drive/drive_api_requests.cc
diff --git a/google_apis/drive/drive_api_requests.cc b/google_apis/drive/drive_api_requests.cc
index 0b5b7229699b25e61285b86d64491c6bfed2495b..d770f4bb5304ec4b09da81b124bc979b48d87244 100644
--- a/google_apis/drive/drive_api_requests.cc
+++ b/google_apis/drive/drive_api_requests.cc
@@ -1211,12 +1211,9 @@
void BatchUploadRequest::Commit() {
DCHECK(CalledOnValidThread());
DCHECK(!committed_);
- if (child_requests_.empty()) {
- Cancel();
- } else {
- committed_ = true;
- MayCompletePrepare();
- }
+ CHECK(!child_requests_.empty());
+ committed_ = true;
+ MayCompletePrepare();
}
void BatchUploadRequest::Prepare(const PrepareCallback& callback) {
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.cc ('k') | google_apis/drive/drive_api_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698