DescriptionReplace base::SharedMemory read-only methods with GetReadOnlyHandle.
This CL is a refactor with no intended behavior change.
The previous methods ShareReadOnlyToProcess and GiveReadOnlyToProcess could be
used to directly add a handle to the destination process, which is a bad
practice. All callers already avoid doing this. The new method GetReadOnlyHandle
returns a read-only handle in the current process which the IPC subsystem will
transport into the destination process.
BUG=716206
TBR=brettw@chromium.org
Review-Url: https://codereview.chromium.org/2845113005
Cr-Commit-Position: refs/heads/master@{#468731}
Committed: https://chromium.googlesource.com/chromium/src/+/c87903ecca1345c4363da94e0120adedd83963b0
Patch Set 1 #Patch Set 2 : Fix. #Patch Set 3 : minor fixes. #Patch Set 4 : get rid of share mode. #Patch Set 5 : Rebase. #Patch Set 6 : clang format. #Patch Set 7 : Fix android. #Patch Set 8 : Fix error. #Patch Set 9 : Rebase. #Patch Set 10 : Rebase. #Patch Set 11 : Rebase. #
Total comments: 6
Patch Set 12 : comments from jyasskin #
Total comments: 9
Patch Set 13 : Comments from thakis. #
Dependent Patchsets: Messages
Total messages: 49 (38 generated)
|