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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_service.cc

Issue 12039005: drive: Deal with the root directory in the same way as others in MoveOperation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/google_apis/gdata_wapi_service.h" 5 #include "chrome/browser/google_apis/gdata_wapi_service.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 void GDataWapiService::RemoveResourceFromDirectory( 445 void GDataWapiService::RemoveResourceFromDirectory(
446 const GURL& parent_content_url, 446 const GURL& parent_content_url,
447 const std::string& resource_id, 447 const std::string& resource_id,
448 const EntryActionCallback& callback) { 448 const EntryActionCallback& callback) {
449 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 449 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
450 DCHECK(!callback.is_null()); 450 DCHECK(!callback.is_null());
451 451
452 runner_->StartOperationWithRetry( 452 runner_->StartOperationWithRetry(
453 new RemoveResourceFromDirectoryOperation(operation_registry(), 453 new RemoveResourceFromDirectoryOperation(operation_registry(),
454 url_request_context_getter_, 454 url_request_context_getter_,
455 url_generator_,
455 callback, 456 callback,
456 parent_content_url, 457 parent_content_url,
457 resource_id)); 458 resource_id));
458 } 459 }
459 460
460 void GDataWapiService::InitiateUpload( 461 void GDataWapiService::InitiateUpload(
461 const InitiateUploadParams& params, 462 const InitiateUploadParams& params,
462 const InitiateUploadCallback& callback) { 463 const InitiateUploadCallback& callback) {
463 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 464 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
464 DCHECK(!callback.is_null()); 465 DCHECK(!callback.is_null());
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 DriveServiceObserver, observers_, OnProgressUpdate(list)); 535 DriveServiceObserver, observers_, OnProgressUpdate(list));
535 } 536 }
536 537
537 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { 538 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) {
538 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 539 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
539 FOR_EACH_OBSERVER( 540 FOR_EACH_OBSERVER(
540 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); 541 DriveServiceObserver, observers_, OnAuthenticationFailed(error));
541 } 542 }
542 543
543 } // namespace google_apis 544 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_operations_unittest.cc ('k') | chrome/browser/google_apis/gdata_wapi_url_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698