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

Unified Diff: google_apis/drive/drive_api_parser.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 | « google_apis/drive/drive_api_parser.h ('k') | google_apis/drive/drive_api_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_parser.cc
diff --git a/google_apis/drive/drive_api_parser.cc b/google_apis/drive/drive_api_parser.cc
index 9a586c34e88628049e823c884e9ce575a98a26b8..9eb00d25d5dd5b139563e8378402f14844e41877 100644
--- a/google_apis/drive/drive_api_parser.cc
+++ b/google_apis/drive/drive_api_parser.cc
@@ -99,7 +99,7 @@ const char kLargestChangeId[] = "largestChangeId";
// https://developers.google.com/drive/v2/reference/about
const char kAboutKind[] = "drive#about";
const char kQuotaBytesTotal[] = "quotaBytesTotal";
-const char kQuotaBytesUsed[] = "quotaBytesUsed";
+const char kQuotaBytesUsedAggregate[] = "quotaBytesUsedAggregate";
const char kRootFolderId[] = "rootFolderId";
// App Icon
@@ -209,7 +209,7 @@ bool IsResourceKindExpected(const base::Value& value,
AboutResource::AboutResource()
: largest_change_id_(0),
quota_bytes_total_(0),
- quota_bytes_used_(0) {}
+ quota_bytes_used_aggregate_(0) {}
AboutResource::~AboutResource() {}
@@ -232,9 +232,10 @@ void AboutResource::RegisterJSONConverter(
converter->RegisterCustomField<int64>(kQuotaBytesTotal,
&AboutResource::quota_bytes_total_,
&base::StringToInt64);
- converter->RegisterCustomField<int64>(kQuotaBytesUsed,
- &AboutResource::quota_bytes_used_,
- &base::StringToInt64);
+ converter->RegisterCustomField<int64>(
+ kQuotaBytesUsedAggregate,
+ &AboutResource::quota_bytes_used_aggregate_,
+ &base::StringToInt64);
converter->RegisterStringField(kRootFolderId,
&AboutResource::root_folder_id_);
}
« no previous file with comments | « google_apis/drive/drive_api_parser.h ('k') | google_apis/drive/drive_api_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698