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

Side by Side Diff: chrome/browser/drive/fake_drive_service.cc

Issue 23772008: Drop duplicated DCHECK on FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/drive/fake_drive_service.h" 5 #include "chrome/browser/drive/fake_drive_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 FROM_HERE, 502 FROM_HERE,
503 base::Bind(callback, HTTP_NOT_FOUND, GURL())); 503 base::Bind(callback, HTTP_NOT_FOUND, GURL()));
504 return CancelCallback(); 504 return CancelCallback();
505 } 505 }
506 506
507 CancelCallback FakeDriveService::GetAboutResource( 507 CancelCallback FakeDriveService::GetAboutResource(
508 const AboutResourceCallback& callback) { 508 const AboutResourceCallback& callback) {
509 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 509 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
510 DCHECK(!callback.is_null()); 510 DCHECK(!callback.is_null());
511 511
512 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
513 DCHECK(!callback.is_null());
514
515 if (offline_) { 512 if (offline_) {
516 scoped_ptr<AboutResource> null; 513 scoped_ptr<AboutResource> null;
517 base::MessageLoop::current()->PostTask( 514 base::MessageLoop::current()->PostTask(
518 FROM_HERE, 515 FROM_HERE,
519 base::Bind(callback, 516 base::Bind(callback,
520 GDATA_NO_CONNECTION, base::Passed(&null))); 517 GDATA_NO_CONNECTION, base::Passed(&null)));
521 return CancelCallback(); 518 return CancelCallback();
522 } 519 }
523 520
524 ++about_resource_load_count_; 521 ++about_resource_load_count_;
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 FROM_HERE, 1650 FROM_HERE,
1654 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list))); 1651 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list)));
1655 } 1652 }
1656 1653
1657 GURL FakeDriveService::GetNewUploadSessionUrl() { 1654 GURL FakeDriveService::GetNewUploadSessionUrl() {
1658 return GURL("https://upload_session_url/" + 1655 return GURL("https://upload_session_url/" +
1659 base::Int64ToString(next_upload_sequence_number_++)); 1656 base::Int64ToString(next_upload_sequence_number_++));
1660 } 1657 }
1661 1658
1662 } // namespace drive 1659 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698