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

Issue 7671039: Count-up/down the dirty count in the usage cache at FileSystemOperation, not at QuotaFU. (Closed)

Created:
9 years, 4 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
9 years, 3 months ago
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org
Visibility:
Public.

Description

Count-up/down the dirty count in the usage cache at FileSystemOperation, not at QuotaFU. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98942

Patch Set 1 #

Total comments: 5

Patch Set 2 : Renamed ScopedOriginUpdateHelper. #

Total comments: 6

Patch Set 3 : Removed (Scoped)OriginUpdateHelper. #

Patch Set 4 : Reflected the comments. #

Total comments: 2

Patch Set 5 : Reflected the comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -61 lines) Patch
M webkit/fileapi/file_system_operation.h View 1 2 3 4 chunks +6 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 8 chunks +74 lines, -0 lines 3 comments Download
M webkit/fileapi/quota_file_util.cc View 1 2 7 chunks +31 lines, -60 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Dai Mikurube (NOT FULLTIME)
It's the first cut.
9 years, 4 months ago (2011-08-18 04:18:09 UTC) #1
ericu
http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc#newcode185 webkit/fileapi/file_system_operation.cc:185: quota_util_helper_.reset(new ScopedQuotaUtilHelper( This feels a bit odd here, given ...
9 years, 4 months ago (2011-08-19 04:12:59 UTC) #2
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing, Eric. http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc#newcode185 webkit/fileapi/file_system_operation.cc:185: quota_util_helper_.reset(new ScopedQuotaUtilHelper( On 2011/08/19 ...
9 years, 4 months ago (2011-08-19 10:21:10 UTC) #3
kinuko
http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/1/webkit/fileapi/file_system_operation.cc#newcode185 webkit/fileapi/file_system_operation.cc:185: quota_util_helper_.reset(new ScopedQuotaUtilHelper( On 2011/08/19 10:21:10, Dai Mikurube wrote: > ...
9 years, 4 months ago (2011-08-19 11:13:08 UTC) #4
ericu
On Fri, Aug 19, 2011 at 3:21 AM, <dmikurube@chromium.org> wrote: > Thank you for reviewing, ...
9 years, 4 months ago (2011-08-19 22:28:55 UTC) #5
kinuko
On 2011/08/19 22:28:55, ericu wrote: > On Fri, Aug 19, 2011 at 3:21 AM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=dmikurube@chromium.org> ...
9 years, 4 months ago (2011-08-20 02:56:16 UTC) #6
kinuko
On 2011/08/20 02:56:16, kinuko wrote: > On 2011/08/19 22:28:55, ericu wrote: > > On Fri, ...
9 years, 4 months ago (2011-08-22 04:06:21 UTC) #7
ericu
On 2011/08/20 02:56:16, kinuko wrote: > On 2011/08/19 22:28:55, ericu wrote: > > On Fri, ...
9 years, 4 months ago (2011-08-22 23:26:04 UTC) #8
Dai Mikurube (NOT FULLTIME)
I've renamed ScopedOriginUpdateHandler to OriginUpdateHandler. I guess it's ready for review. Could you please take ...
9 years, 4 months ago (2011-08-25 04:57:06 UTC) #9
kinuko
http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h File webkit/fileapi/file_system_operation.h (right): http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h#newcode96 webkit/fileapi/file_system_operation.h:96: class ScopedQuotaUtilHelper { I think we can just declare ...
9 years, 4 months ago (2011-08-25 09:12:00 UTC) #10
Dai Mikurube (NOT FULLTIME)
Thank you for the comments. http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h File webkit/fileapi/file_system_operation.h (right): http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h#newcode96 webkit/fileapi/file_system_operation.h:96: class ScopedQuotaUtilHelper { On ...
9 years, 4 months ago (2011-08-25 09:19:45 UTC) #11
kinuko
lgtm mod one more comment. http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h File webkit/fileapi/file_system_operation.h (right): http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h#newcode96 webkit/fileapi/file_system_operation.h:96: class ScopedQuotaUtilHelper { On ...
9 years, 3 months ago (2011-08-29 05:22:51 UTC) #12
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing. I'll commit it if bots are happy. http://codereview.chromium.org/7671039/diff/10001/webkit/fileapi/file_system_operation.h File webkit/fileapi/file_system_operation.h (right): ...
9 years, 3 months ago (2011-08-30 08:03:01 UTC) #13
kinuko
lgtm http://codereview.chromium.org/7671039/diff/16001/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/16001/webkit/fileapi/file_system_operation.cc#newcode28 webkit/fileapi/file_system_operation.cc:28: explicit ScopedQuotaUtilHelper(FileSystemContext* context, no need to make this ...
9 years, 3 months ago (2011-08-30 12:31:20 UTC) #14
Dai Mikurube (NOT FULLTIME)
Thanks. Updated! http://codereview.chromium.org/7671039/diff/16001/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/16001/webkit/fileapi/file_system_operation.cc#newcode28 webkit/fileapi/file_system_operation.cc:28: explicit ScopedQuotaUtilHelper(FileSystemContext* context, On 2011/08/30 12:31:20, kinuko ...
9 years, 3 months ago (2011-08-30 12:41:23 UTC) #15
ericu
LGTM; sorry again for the slow response. http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_operation.cc#newcode44 webkit/fileapi/file_system_operation.cc:44: DCHECK(type != ...
9 years, 3 months ago (2011-08-30 17:50:29 UTC) #16
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing. As I wrote below, I think the pointed check can be ...
9 years, 3 months ago (2011-08-31 07:12:02 UTC) #17
kinuko
http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_operation.cc#newcode44 webkit/fileapi/file_system_operation.cc:44: DCHECK(type != kFileSystemTypeUnknown); On 2011/08/31 07:12:02, Dai Mikurube wrote: ...
9 years, 3 months ago (2011-08-31 07:25:33 UTC) #18
commit-bot: I haz the power
Change committed as 98942
9 years, 3 months ago (2011-08-31 08:38:04 UTC) #19
ericu
9 years, 3 months ago (2011-08-31 15:10:53 UTC) #20
On Wed, Aug 31, 2011 at 12:25 AM,  <kinuko@chromium.org> wrote:
>
>
http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_...
> File webkit/fileapi/file_system_operation.cc (right):
>
>
http://codereview.chromium.org/7671039/diff/24001/webkit/fileapi/file_system_...
> webkit/fileapi/file_system_operation.cc:44: DCHECK(type !=
> kFileSystemTypeUnknown);
> On 2011/08/31 07:12:02, Dai Mikurube wrote:
>>
>> On 2011/08/30 17:50:29, ericu wrote:
>> > It would be safer to check that it's one of the known types.
>
>> Thanks.  I guess we want some other opinion on this.  There're many
>
> DCHECKs like
>>
>> this.  We can fix all of such DCHECKs in another change.
>
>> What do you think, Kinuko-san?
>
> Basically if it's one of the types that doesn't support quota
> GetQuotaUtil(type) should return NULL, so I think the check (type !=
> Unknown) would be safe enough.

I was also thinking of the case in which the caller's forgotten to
initialize type.  We may have enough checks elsewhere that that's
pretty unlikely, though.

> Btw DCHECK_NE(type, kFileSystemTypeUnknown) would be a preferred way
> according to lint.
>
> http://codereview.chromium.org/7671039/
>

Powered by Google App Engine
This is Rietveld 408576698