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

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

Issue 145173010: drive: Merge ContentUpdatePerformer to EntryUpdatePerformer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: please review this Created 6 years, 11 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/job_scheduler.cc
diff --git a/chrome/browser/chromeos/drive/job_scheduler.cc b/chrome/browser/chromeos/drive/job_scheduler.cc
index be5a5df7ea80157186da3dfd4eac0a2bd5723680..a34cb139f0f87aca5fa75ec0e1a2ab35a28186f9 100644
--- a/chrome/browser/chromeos/drive/job_scheduler.cc
+++ b/chrome/browser/chromeos/drive/job_scheduler.cc
@@ -94,6 +94,7 @@ struct UploadExistingFileParams {
std::string resource_id;
base::FilePath local_file_path;
std::string content_type;
+ drive::DriveUploader::UploadExistingFileOptions options;
std::string etag;
UploadCompletionCallback callback;
google_apis::ProgressCallback progress_callback;
@@ -103,12 +104,10 @@ struct UploadExistingFileParams {
google_apis::CancelCallback RunUploadExistingFile(
DriveUploaderInterface* uploader,
const UploadExistingFileParams& params) {
- drive::DriveUploader::UploadExistingFileOptions options;
- options.etag = params.etag;
return uploader->UploadExistingFile(params.resource_id,
params.local_file_path,
params.content_type,
- options,
+ params.options,
params.callback,
params.progress_callback);
}
@@ -654,7 +653,7 @@ void JobScheduler::UploadExistingFile(
const base::FilePath& drive_file_path,
const base::FilePath& local_file_path,
const std::string& content_type,
- const std::string& etag,
+ const drive::DriveUploader::UploadExistingFileOptions& options,
const ClientContext& context,
const google_apis::GetResourceEntryCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -667,7 +666,7 @@ void JobScheduler::UploadExistingFile(
params.resource_id = resource_id;
params.local_file_path = local_file_path;
params.content_type = content_type;
- params.etag = etag;
+ params.options = options;
ResumeUploadParams resume_params;
resume_params.local_file_path = params.local_file_path;
« no previous file with comments | « chrome/browser/chromeos/drive/job_scheduler.h ('k') | chrome/browser/chromeos/drive/sync/content_update_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698