Files.app: Use quotaBytesUsedAggregate to know the actual available space.
commitfa39c6524a482ae3dc75773dbc4e88f4ed9e8fbf
authorfukino <fukino@chromium.org>
Tue, 12 May 2015 02:46:12 +0000 (11 19:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 02:46:19 +0000 (12 02:46 +0000)
tree7d3690180fe51573ce8c9508586aed5c73f5bef6
parent02d9aea8003449c921c5c4b41ab67b0f554b1a72
Files.app: Use quotaBytesUsedAggregate to know the actual available space.

We need to use quotaBytesUsedAggregate to know the actual available space, because the current quotaBytesUsed returns usage in only Google Drive (doesn't include Gmail, G+ Photos, etc...).
https://developers.google.com/drive/v2/reference/about#resource

BUG=483058
TEST=run unit_tests

Review URL: https://codereview.chromium.org/1125123008

Cr-Commit-Position: refs/heads/master@{#329330}
chrome/browser/chromeos/drive/file_system.cc
chrome/browser/drive/drive_api_service.cc
chrome/browser/drive/fake_drive_service.cc
chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
chrome/test/data/drive/about.json
google_apis/drive/drive_api_parser.cc
google_apis/drive/drive_api_parser.h
google_apis/drive/drive_api_parser_unittest.cc
google_apis/drive/drive_api_requests_unittest.cc