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

Unified Diff: chrome/browser/google_apis/drive_api_service.cc

Issue 12090015: Implement CreateDirectoryOperation on Drive API v2. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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/google_apis/drive_api_service.cc
diff --git a/chrome/browser/google_apis/drive_api_service.cc b/chrome/browser/google_apis/drive_api_service.cc
index de23d5c9ba84234ab5aa92ce132e76fd1748c936..1f87be1d26828104280253bbddf66b7724eb968d 100644
--- a/chrome/browser/google_apis/drive_api_service.cc
+++ b/chrome/browser/google_apis/drive_api_service.cc
@@ -377,8 +377,14 @@ void DriveAPIService::AddNewDirectory(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
- // TODO(kochi): Implement this.
- NOTREACHED();
+ runner_->StartOperationWithRetry(
+ new drive::CreateDirectoryOperation(
+ operation_registry(),
+ url_request_context_getter_,
+ url_generator_,
+ parent_resource_id,
+ directory_name,
+ base::Bind(&ParseResourceEntryAndRun, callback)));
}
void DriveAPIService::CopyHostedDocument(

Powered by Google App Engine
This is Rietveld 408576698