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

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

Issue 1125123008: Files.app: Use quotaBytesUsedAggregate to know the actual available space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/drive_api_service.cc ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | 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 2ddd835625171a0c8acea874459f5dc32ddd0d15..a524b8750773b06926c9600edb72da14ee08ab3f 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -240,7 +240,7 @@ FakeDriveService::FakeDriveService()
weak_ptr_factory_(this) {
about_resource_->set_largest_change_id(654321);
about_resource_->set_quota_bytes_total(9876543210);
- about_resource_->set_quota_bytes_used(6789012345);
+ about_resource_->set_quota_bytes_used_aggregate(6789012345);
about_resource_->set_root_folder_id(GetRootResourceId());
}
@@ -326,7 +326,7 @@ bool FakeDriveService::HasApp(const std::string& app_id) const {
void FakeDriveService::SetQuotaValue(int64 used, int64 total) {
DCHECK(thread_checker_.CalledOnValidThread());
- about_resource_->set_quota_bytes_used(used);
+ about_resource_->set_quota_bytes_used_aggregate(used);
about_resource_->set_quota_bytes_total(total);
}
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698