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

Issue 121813002: Pepper: Ensure FileIO host cleans up before FileSystem host destructs. (Closed)

Created:
6 years, 12 months ago by bbudge
Modified:
6 years, 12 months ago
Reviewers:
teravest
CC:
chromium-reviews
Visibility:
Public.

Description

Pepper: FileIO holds FileSystem ref with scoped_refptr<Resource>. 1) Use a scoped_refptr to keep the FileSystemResource alive. ScopedPPResource isn't safe for this purpose. 2) Make sure that the FileIOResource always sends a close message, so the FileIO host can unhook from the FileSystemHost before the latter is destroyed. Due to refcounting, the destruction order is in some cases not what we want. R=teravest@chromium.org BUG=330809, 330859 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242646

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use Close message to ensure work is done before FileSystemHost dtor. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -13 lines) Patch
M content/browser/renderer_host/pepper/pepper_file_io_host.cc View 1 1 chunk +3 lines, -1 line 1 comment Download
M ppapi/proxy/file_io_resource.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/file_io_resource.cc View 1 4 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bbudge
6 years, 12 months ago (2013-12-27 19:16:47 UTC) #1
bbudge
https://codereview.chromium.org/121813002/diff/1/ppapi/proxy/file_io_resource.h File ppapi/proxy/file_io_resource.h (right): https://codereview.chromium.org/121813002/diff/1/ppapi/proxy/file_io_resource.h#newcode27 ppapi/proxy/file_io_resource.h:27: class FileSystemResource; I'll remove this.
6 years, 12 months ago (2013-12-27 19:17:41 UTC) #2
teravest
lgtm Thanks for doing this. Looks good after removing that unnecessary line.
6 years, 12 months ago (2013-12-27 19:19:04 UTC) #3
bbudge
I decided to roll the Close change into this one. Updated the issue to reflect ...
6 years, 12 months ago (2013-12-27 20:04:28 UTC) #4
teravest
lgtm Thanks!
6 years, 12 months ago (2013-12-27 20:13:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/121813002/100001
6 years, 12 months ago (2013-12-27 20:44:18 UTC) #6
bbudge
6 years, 12 months ago (2013-12-27 22:53:52 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r242646 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698