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

Issue 11312017: Avoid leaking SerializedHandles. (Closed)

Created:
8 years, 1 month ago by yzshen1
Modified:
8 years, 1 month ago
Reviewers:
brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Avoid leaking SerializedHandles. This CL automatically closes SerializedHandles at the receiving side of ResourceMessageParams (the host side for ResourceMessageCallParams; the plugin side for ResourceMessageReplyParams), if they are not taken by message handlers. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165799

Patch Set 1 #

Total comments: 4

Patch Set 2 : changes in response to brettw's suggestions. #

Patch Set 3 : fix test #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -50 lines) Patch
M content/browser/renderer_host/pepper/pepper_gamepad_host.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/gamepad_resource.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/resource_message_params.h View 1 4 chunks +57 lines, -23 lines 0 comments Download
M ppapi/proxy/resource_message_params.cc View 1 2 chunks +41 lines, -20 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_structs.cc View 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
yzshen1
Hi, Brett. Would you please take a look? Note: I set |handles_| in ResourceMessageParams to ...
8 years, 1 month ago (2012-10-31 17:18:10 UTC) #1
brettw
I'm not a huge fan of the mutable and I'd prefer to fix the callers. ...
8 years, 1 month ago (2012-10-31 20:15:59 UTC) #2
yzshen1
Thanks, Brett! > I'm not a huge fan of the mutable and I'd prefer to ...
8 years, 1 month ago (2012-10-31 21:15:27 UTC) #3
brettw
I'm hoping to avoid putting them in the call params although it's possible we may ...
8 years, 1 month ago (2012-10-31 21:22:02 UTC) #4
brettw
lgtm
8 years, 1 month ago (2012-10-31 21:22:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11312017/3001
8 years, 1 month ago (2012-11-01 17:11:52 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-01 17:41:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11312017/12002
8 years, 1 month ago (2012-11-02 21:02:59 UTC) #8
commit-bot: I haz the power
Retried try job too often for step(s) compile
8 years, 1 month ago (2012-11-02 21:28:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11312017/17
8 years, 1 month ago (2012-11-02 21:30:13 UTC) #10
commit-bot: I haz the power
8 years, 1 month ago (2012-11-02 23:24:58 UTC) #11
Change committed as 165799

Powered by Google App Engine
This is Rietveld 408576698