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

Issue 11188003: Fix some potential Mach port leaks from mach_host_self using a new ScopedMachPort class. (Closed)

Created:
8 years, 2 months ago by Robert Sesek
Modified:
8 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Fix some potential Mach port leaks from mach_host_self using a new ScopedMachPort class. BUG=119379 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162225

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : More comments, iOS compile #

Patch Set 4 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -3 lines) Patch
M base/base.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A base/mac/scoped_mach_port.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A base/mac/scoped_mach_port.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M base/process_util_mac.mm View 1 2 chunks +2 lines, -1 line 0 comments Download
M base/sys_info_ios.mm View 1 2 chunks +3 lines, -1 line 0 comments Download
M base/sys_info_mac.cc View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Robert Sesek
8 years, 2 months ago (2012-10-16 15:48:42 UTC) #1
Mark Mentovai
https://codereview.chromium.org/11188003/diff/1/base/mac/scoped_mach_port.h File base/mac/scoped_mach_port.h (right): https://codereview.chromium.org/11188003/diff/1/base/mac/scoped_mach_port.h#newcode18 base/mac/scoped_mach_port.h:18: // for specialized Mach port types. But practically speaking, ...
8 years, 2 months ago (2012-10-16 16:17:51 UTC) #2
Robert Sesek
https://codereview.chromium.org/11188003/diff/1/base/mac/scoped_mach_port.h File base/mac/scoped_mach_port.h (right): https://codereview.chromium.org/11188003/diff/1/base/mac/scoped_mach_port.h#newcode18 base/mac/scoped_mach_port.h:18: // for specialized Mach port types. On 2012/10/16 16:17:52, ...
8 years, 2 months ago (2012-10-16 16:30:59 UTC) #3
Mark Mentovai
LGTM https://codereview.chromium.org/11188003/diff/5001/base/mac/scoped_mach_port.cc File base/mac/scoped_mach_port.cc (right): https://codereview.chromium.org/11188003/diff/5001/base/mac/scoped_mach_port.cc#newcode19 base/mac/scoped_mach_port.cc:19: port_ = MACH_PORT_NULL; Not strictly necessary for the ...
8 years, 2 months ago (2012-10-16 16:34:28 UTC) #4
Robert Sesek
https://codereview.chromium.org/11188003/diff/5001/base/mac/scoped_mach_port.cc File base/mac/scoped_mach_port.cc (right): https://codereview.chromium.org/11188003/diff/5001/base/mac/scoped_mach_port.cc#newcode19 base/mac/scoped_mach_port.cc:19: port_ = MACH_PORT_NULL; On 2012/10/16 16:34:28, Mark Mentovai wrote: ...
8 years, 2 months ago (2012-10-16 16:40:23 UTC) #5
Mark Mentovai
LGTM
8 years, 2 months ago (2012-10-16 16:57:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/11188003/10001
8 years, 2 months ago (2012-10-16 17:06:50 UTC) #7
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 20:18:00 UTC) #8
Change committed as 162225

Powered by Google App Engine
This is Rietveld 408576698