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

Issue 7508010: Pepper quota fix: fire callbacks asynchronously to avoid crash in write callback chain (Closed)

Created:
9 years, 4 months ago by kinuko
Modified:
9 years, 4 months ago
Reviewers:
brettw, yzshen1
CC:
chromium-reviews, darin-cc_chromium.org, ddorwin
Visibility:
Public.

Description

Pepper quota fix: fire callbacks asynchronously to avoid crash in write callback chain. The older code could screw up pending_operations_ in QuotaFileIO when another Write is issued in WriteCallback. This patch is to fix the issue by always firing callbacks asynchronously. BUG=86556 TEST=test_shell_tests:QuotaFileIOTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96154

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : using 2 queues #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : removed 'protected' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -40 lines) Patch
M webkit/plugins/ppapi/quota_file_io.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/quota_file_io.cc View 1 2 3 4 12 chunks +33 lines, -39 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kinuko
I have brought a bug in the new pepper quota code. It crashes when another ...
9 years, 4 months ago (2011-08-04 12:26:09 UTC) #1
yzshen1
http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc File webkit/plugins/ppapi/quota_file_io.cc (right): http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc#newcode103 webkit/plugins/ppapi/quota_file_io.cc:103: base::MessageLoopProxy::CreateForCurrentThread()->PostTask( Would you please explain why this needs to ...
9 years, 4 months ago (2011-08-04 20:27:37 UTC) #2
kinuko
http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc File webkit/plugins/ppapi/quota_file_io.cc (right): http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc#newcode103 webkit/plugins/ppapi/quota_file_io.cc:103: base::MessageLoopProxy::CreateForCurrentThread()->PostTask( On 2011/08/04 20:27:38, yzshen1 wrote: > Would you ...
9 years, 4 months ago (2011-08-05 18:29:56 UTC) #3
yzshen1
LGTM http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc File webkit/plugins/ppapi/quota_file_io.cc (right): http://codereview.chromium.org/7508010/diff/7001/webkit/plugins/ppapi/quota_file_io.cc#newcode103 webkit/plugins/ppapi/quota_file_io.cc:103: base::MessageLoopProxy::CreateForCurrentThread()->PostTask( Thanks for explaining. On 2011/08/05 18:29:56, kinuko ...
9 years, 4 months ago (2011-08-05 20:31:46 UTC) #4
brettw
LGTM rubberstamp (I'm assuming Yuzhu went over the details).
9 years, 4 months ago (2011-08-06 00:13:51 UTC) #5
kinuko
9 years, 4 months ago (2011-08-08 11:21:12 UTC) #6
http://codereview.chromium.org/7508010/diff/15006/webkit/plugins/ppapi/quota_...
File webkit/plugins/ppapi/quota_file_io.cc (right):

http://codereview.chromium.org/7508010/diff/15006/webkit/plugins/ppapi/quota_...
webkit/plugins/ppapi/quota_file_io.cc:151: protected:
On 2011/08/05 20:31:46, yzshen1 wrote:
> Is this 'protected' intended for all the methods below such as Run/DidFail?
> IMO, it might be more clear to use the same access level as the definition in
> the base class.

Oops, this was a remnant of the other (reverted) change... removed.

Will be submitting without this line.

Powered by Google App Engine
This is Rietveld 408576698