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

Unified Diff: chrome/browser/chromeos/drive/drive_uploader.cc

Issue 11143014: Add request header on gdata operation for testing ETag match. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +comment Created 8 years, 2 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/drive/drive_uploader.cc
diff --git a/chrome/browser/chromeos/drive/drive_uploader.cc b/chrome/browser/chromeos/drive/drive_uploader.cc
index 25507bfa8483c21259ddd394f2e4424be5df6712..4ec8fa4ebb20d3ba4671de9738fc609b1ecdc237 100644
--- a/chrome/browser/chromeos/drive/drive_uploader.cc
+++ b/chrome/browser/chromeos/drive/drive_uploader.cc
@@ -304,7 +304,8 @@ void DriveUploader::OpenCompletionCallback(FileOpenType open_type,
upload_file_info->content_type,
upload_file_info->content_length,
upload_file_info->initial_upload_location,
- upload_file_info->drive_path),
+ upload_file_info->drive_path,
+ upload_file_info->etag),
base::Bind(&DriveUploader::OnUploadLocationReceived,
weak_ptr_factory_.GetWeakPtr(),
upload_file_info->upload_id));
@@ -448,7 +449,8 @@ void DriveUploader::ResumeUpload(int upload_id) {
upload_file_info->content_type,
upload_file_info->buf,
upload_file_info->upload_location,
- upload_file_info->drive_path),
+ upload_file_info->drive_path,
+ upload_file_info->etag),
base::Bind(&DriveUploader::OnResumeUploadResponseReceived,
weak_ptr_factory_.GetWeakPtr(),
upload_file_info->upload_id));

Powered by Google App Engine
This is Rietveld 408576698