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

Unified Diff: chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc

Issue 449763002: Remove DriveServiceInterface::RenameResource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc b/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc
index 9a6f864572c854ffa806ca5fb1936f04475c48e4..a6874ac6e8846fbafc7f92789974781c4e81fe5a 100644
--- a/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc
+++ b/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc
@@ -179,9 +179,10 @@ GDataErrorCode FakeDriveServiceHelper::RenameResource(
const std::string& file_id,
const std::string& new_title) {
GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
- fake_drive_service_->RenameResource(
- file_id, new_title,
- CreateResultReceiver(&error));
+ scoped_ptr<FileResource> entry;
+ fake_drive_service_->UpdateResource(
+ file_id, std::string(), new_title, base::Time(), base::Time(),
+ CreateResultReceiver(&error, &entry));
base::RunLoop().RunUntilIdle();
return error;
}
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698