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

Issue 2847033003: Get rid of SharedMemory::GiveToProcess. (Closed)

Created:
3 years, 7 months ago by erikchen
Modified:
3 years, 7 months ago
Reviewers:
Avi (use Gerrit), Nico
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vmpstr+watch_chromium.org, jam, gavinp+memory_chromium.org, darin-cc_chromium.org, mac-reviews_chromium.org, danakj+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of SharedMemory::GiveToProcess. This CL is a refactor with no intended behavior change. The method existed to allow a process to directly give a handle to another process, before the IPC subsystem supported handle transport. Now that handle transport is supported, all instances of directly giving a handle have already been removed, and this is just a clean up. BUG=716206 TBR=avi@chromium.org Review-Url: https://codereview.chromium.org/2847033003 Cr-Commit-Position: refs/heads/master@{#468766} Committed: https://chromium.googlesource.com/chromium/src/+/63840887ae819fb18b2103ac939db69e35ffe111

Patch Set 1 #

Patch Set 2 : finish aptch. #

Patch Set 3 : Compile error. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : compile error. #

Patch Set 7 : Compile error. #

Patch Set 8 : compile erorr. #

Patch Set 9 : Rebase. #

Total comments: 7

Patch Set 10 : Comments from thakis. #

Total comments: 2

Patch Set 11 : Comments from avi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -67 lines) Patch
M base/memory/shared_memory.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -14 lines 0 comments Download
M base/memory/shared_memory_handle.h View 3 chunks +3 lines, -6 lines 0 comments Download
M base/memory/shared_memory_handle_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
M base/memory/shared_memory_mac.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -6 lines 0 comments Download
M base/memory/shared_memory_nacl.cc View 1 chunk +1 line, -6 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 4 5 6 3 chunks +2 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/pepper/ppb_image_data_impl.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 58 (48 generated)
erikchen
thakis: Please review.
3 years, 7 months ago (2017-04-28 21:13:08 UTC) #10
Nico
lgtm, but the Dup() / Close() / Unmap() sequences in latter files feel strange. https://codereview.chromium.org/2847033003/diff/140001/base/memory/shared_memory_handle_win.cc ...
3 years, 7 months ago (2017-05-02 15:58:46 UTC) #38
erikchen
https://codereview.chromium.org/2847033003/diff/140001/base/memory/shared_memory_handle_win.cc File base/memory/shared_memory_handle_win.cc (right): https://codereview.chromium.org/2847033003/diff/140001/base/memory/shared_memory_handle_win.cc#newcode43 base/memory/shared_memory_handle_win.cc:43: // Duplicates the underlying OS resource. On 2017/05/02 15:58:45, ...
3 years, 7 months ago (2017-05-02 18:45:57 UTC) #39
erikchen
avi: TBR-ing you for content/ changes in this refactor.
3 years, 7 months ago (2017-05-02 18:47:11 UTC) #44
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/2847033003/160001
3 years, 7 months ago (2017-05-02 19:19:27 UTC) #48
Avi (use Gerrit)
not lgtm https://codereview.chromium.org/2847033003/diff/160001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (left): https://codereview.chromium.org/2847033003/diff/160001/content/browser/renderer_host/render_message_filter.cc#oldcode1 content/browser/renderer_host/render_message_filter.cc:1: // Copyright (c) 2012 The Chromium Authors. ...
3 years, 7 months ago (2017-05-02 19:46:21 UTC) #50
erikchen
avi: PTAL https://codereview.chromium.org/2847033003/diff/160001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (left): https://codereview.chromium.org/2847033003/diff/160001/content/browser/renderer_host/render_message_filter.cc#oldcode1 content/browser/renderer_host/render_message_filter.cc:1: // Copyright (c) 2012 The Chromium Authors. ...
3 years, 7 months ago (2017-05-02 19:48:40 UTC) #51
Avi (use Gerrit)
lgtm stamp
3 years, 7 months ago (2017-05-02 19:50:36 UTC) #52
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/2847033003/180001
3 years, 7 months ago (2017-05-02 19:53:12 UTC) #55
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 20:52:47 UTC) #58
Message was sent while issue was closed.
Committed patchset #11 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/63840887ae819fb18b2103ac939d...

Powered by Google App Engine
This is Rietveld 408576698