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

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

Issue 10828385: Rename DocumentsServiceInterface to DriveServiceInterface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unnecessary includes. 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_uploader.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_uploader.cc b/chrome/browser/chromeos/gdata/gdata_uploader.cc
index 114fd3cca81204ea5278077c670b09c98b808a1c..b07c3b61846b7e01cb18f8747feb4f099c92ce54 100644
--- a/chrome/browser/chromeos/gdata/gdata_uploader.cc
+++ b/chrome/browser/chromeos/gdata/gdata_uploader.cc
@@ -8,7 +8,7 @@
#include "base/bind.h"
#include "base/callback.h"
-#include "chrome/browser/chromeos/gdata/documents_service_interface.h"
+#include "chrome/browser/chromeos/gdata/drive_service_interface.h"
#include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
#include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h"
#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
@@ -31,8 +31,8 @@ const int kMaxFileOpenTries = 5;
namespace gdata {
-GDataUploader::GDataUploader(DocumentsServiceInterface* documents_service)
- : documents_service_(documents_service),
+GDataUploader::GDataUploader(DriveServiceInterface* drive_service)
+ : drive_service_(drive_service),
next_upload_id_(0),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
}
@@ -240,7 +240,7 @@ void GDataUploader::OpenCompletionCallback(int upload_id, int result) {
GDATA_FILE_ERROR_ABORT);
return;
}
- documents_service_->InitiateUpload(
+ drive_service_->InitiateUpload(
InitiateUploadParams(upload_file_info->upload_mode,
upload_file_info->title,
upload_file_info->content_type,
@@ -366,7 +366,7 @@ void GDataUploader::ResumeUpload(int upload_id) {
if (!upload_file_info)
return;
- documents_service_->ResumeUpload(
+ drive_service_->ResumeUpload(
ResumeUploadParams(upload_file_info->upload_mode,
upload_file_info->start_range,
upload_file_info->end_range,
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_uploader.h ('k') | chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698