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

Issue 2854833004: Use SharedMemoryHandle instead ScopedHandle as ivar for SharedMemory (Closed)

Created:
3 years, 7 months ago by erikchen
Modified:
3 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews, danakj+watch_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SharedMemoryHandle instead ScopedHandle as ivar for SharedMemory Only Windows was using ScopedHandle. Other platforms already used a SharedMemoryHandle directly. The theoretical benefit of ScopedHandle is that it correctly deals with ownership. But all that does is ensure that the handle is closed during destruction of SharedMemory, which is already explicitly coded, since it's needed on all platforms. Switching to SharedMemoryHandle is needed to correctly propagate other state on SharedMemoryHandle, which is being added in the near future. BUG=713763 Review-Url: https://codereview.chromium.org/2854833004 Cr-Commit-Position: refs/heads/master@{#469179} Committed: https://chromium.googlesource.com/chromium/src/+/3df1dd51204370d6289ce46252d3c416c272447e

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Total comments: 1

Patch Set 4 : Compile fix + Rebase. #

Patch Set 5 : Windows compile error. #

Patch Set 6 : clean up #

Patch Set 7 : close should be idempotent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -23 lines) Patch
M base/memory/shared_memory.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M base/memory/shared_memory_handle.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/memory/shared_memory_mac.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 4 5 6 8 chunks +20 lines, -17 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 35 (27 generated)
erikchen
thakis: Please review.
3 years, 7 months ago (2017-05-02 19:18:36 UTC) #11
Nico
lgtm https://codereview.chromium.org/2854833004/diff/40001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/2854833004/diff/40001/base/memory/shared_memory_handle.h#newcode157 base/memory/shared_memory_handle.h:157: friend class SharedMemory; :-(
3 years, 7 months ago (2017-05-02 20:37:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854833004/60001
3 years, 7 months ago (2017-05-03 17:19:59 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/402647) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 7 months ago (2017-05-03 18:20:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854833004/100001
3 years, 7 months ago (2017-05-03 18:41:45 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/435415)
3 years, 7 months ago (2017-05-03 19:57:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854833004/80002
3 years, 7 months ago (2017-05-03 21:36:32 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 22:54:00 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:80002) as
https://chromium.googlesource.com/chromium/src/+/3df1dd51204370d6289ce46252d3...

Powered by Google App Engine
This is Rietveld 408576698