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

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

Issue 22297004: drive: Stop making multiple GetAppList() requests from DriveAppRegistry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify Created 7 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
Index: chrome/browser/drive/fake_drive_service.h
diff --git a/chrome/browser/drive/fake_drive_service.h b/chrome/browser/drive/fake_drive_service.h
index 9b1a4e51f270de32a54d138e5a3c152ff0d59fab..1a1e5d9a2cea2b5552e87d66f53264cc2a976e91 100644
--- a/chrome/browser/drive/fake_drive_service.h
+++ b/chrome/browser/drive/fake_drive_service.h
@@ -68,6 +68,10 @@ class FakeDriveService : public DriveServiceInterface {
return about_resource_load_count_;
}
+ // Returns the number of times the app list is successfully loaded by
+ // GetAppList().
+ int app_list_load_count() const { return app_list_load_count_; }
+
// Returns the file path whose request is cancelled just before this method
// invocation.
const base::FilePath& last_cancelled_file() const {
@@ -272,6 +276,7 @@ class FakeDriveService : public DriveServiceInterface {
int change_list_load_count_;
int directory_load_count_;
int about_resource_load_count_;
+ int app_list_load_count_;
bool offline_;
base::FilePath last_cancelled_file_;
« no previous file with comments | « chrome/browser/chromeos/drive/drive_app_registry_unittest.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698