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

Issue 11146034: Add GetUsageAndQuota() to Syncable API (Closed)

Created:
8 years, 2 months ago by calvinlo
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, kinuko+watch, mihaip-chromium-reviews_chromium.org, tzik+watch_chromium.org
Visibility:
Public.

Description

Add extension API to get quota and usage of 'Syncable' storage for drive-backed File API BUG=153501 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163234

Patch Set 1 #

Patch Set 2 : First patch with initial test #

Patch Set 3 : Rebase #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : Kinuko and Mihai review #1 #

Total comments: 4

Patch Set 6 : Mihai Parparita #

Patch Set 7 : Mihai Review #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -7 lines) Patch
M chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc View 1 2 3 4 5 4 chunks +61 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc View 1 2 chunks +20 lines, -1 line 0 comments Download
M chrome/common/extensions/api/sync_file_system.idl View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/manifest.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
calvinlo
I think this is ready for a first look.
8 years, 2 months ago (2012-10-18 09:46:31 UTC) #1
kinuko
Looking good to me. Adding Mihai (mihaip@) for serious review in the extension API part. ...
8 years, 2 months ago (2012-10-18 13:00:57 UTC) #2
Mihai Parparita -not on Chrome
http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode137 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:137: // SendResponse must run on UI thread. Repost if ...
8 years, 2 months ago (2012-10-18 20:10:56 UTC) #3
Mihai Parparita -not on Chrome
http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode156 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:156: dict->SetInteger("usage", usage); Instead of repeating the field names as ...
8 years, 2 months ago (2012-10-18 20:12:37 UTC) #4
kinuko
http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode137 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:137: // SendResponse must run on UI thread. Repost if ...
8 years, 2 months ago (2012-10-19 04:10:49 UTC) #5
calvinlo
Think I covered everything mentioned by both Kinuko and Mihai in this latest patch. http://codereview.chromium.org/11146034/diff/4002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc ...
8 years, 2 months ago (2012-10-19 06:59:42 UTC) #6
kinuko
lgtm (if it looks good to extension owners)
8 years, 2 months ago (2012-10-19 10:31:01 UTC) #7
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/11146034/diff/10002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): http://codereview.chromium.org/11146034/diff/10002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode139 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:139: BrowserThread::PostTask( Add a DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) here http://codereview.chromium.org/11146034/diff/10002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode146 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:146: And ...
8 years, 2 months ago (2012-10-19 22:20:55 UTC) #8
calvinlo
Added the DCHECKS. Running CQ now. http://codereview.chromium.org/11146034/diff/10002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): http://codereview.chromium.org/11146034/diff/10002/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode139 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:139: BrowserThread::PostTask( On 2012/10/19 ...
8 years, 2 months ago (2012-10-22 03:53:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/11146034/3006
8 years, 2 months ago (2012-10-22 03:54:01 UTC) #10
commit-bot: I haz the power
8 years, 2 months ago (2012-10-22 06:40:01 UTC) #11
Change committed as 163234

Powered by Google App Engine
This is Rietveld 408576698