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

Unified Diff: chrome/browser/drive/fake_drive_service.cc

Issue 23441049: drive: Enable recursive fast-fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/fake_drive_service.cc
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc
index 8629ae7f626fb77a2646a89b5db5a42e977f0466..2365ac15b4e9d16cbdc4ab24bd917de931ff5e3c 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -176,7 +176,9 @@ FakeDriveService::FakeDriveService()
directory_load_count_(0),
about_resource_load_count_(0),
app_list_load_count_(0),
- offline_(false) {
+ blocked_resource_list_load_count_(0),
+ offline_(false),
+ never_return_all_resource_list_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
@@ -328,6 +330,11 @@ CancelCallback FakeDriveService::GetAllResourceList(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
+ if (never_return_all_resource_list_) {
+ ++blocked_resource_list_load_count_;
+ return CancelCallback();
+ }
+
GetResourceListInternal(0, // start changestamp
std::string(), // empty search query
std::string(), // no directory resource id,
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698