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

Issue 1414603003: ipc: Move AttachmentBrokerPrivileged singleton logic into ipc/. (Closed)

Created:
5 years, 2 months ago by erikchen
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ipc: Move AttachmentBrokerPrivileged singleton logic into ipc/. Previously, the logic was only used by ChildProcessHostImpl, so it lived there. The logic actually needs to be invoked by both ChildProcessHostImpl, and RenderProcessHostImpl, so I moved the logic into ipc/. On Mac, the PortProvider needs to be passed to the AttachmentBrokerPrivileged once, so I added a parameter to the constructor to do just that. BUG=535711 Committed: https://crrev.com/d8a3d902c0914bb6a903348578ee7eaca90006d4 Cr-Commit-Position: refs/heads/master@{#355625}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments from tsepez. #

Patch Set 3 : Refactoring - not yet ready for review. #

Patch Set 4 : Minor formatting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -94 lines) Patch
M content/browser/browser_child_process_host_impl.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 5 chunks +26 lines, -0 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 3 4 chunks +4 lines, -37 lines 0 comments Download
M ipc/attachment_broker.h View 1 2 4 chunks +0 lines, -25 lines 0 comments Download
M ipc/attachment_broker.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M ipc/attachment_broker_mac_unittest.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M ipc/attachment_broker_privileged.h View 1 2 2 chunks +14 lines, -7 lines 0 comments Download
M ipc/attachment_broker_privileged.cc View 1 2 2 chunks +54 lines, -10 lines 0 comments Download
M ipc/attachment_broker_privileged_mac.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M ipc/attachment_broker_privileged_mac.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M ipc/attachment_broker_privileged_mac_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
erikchen
tsepez: Please review ipc/ avi: Please review content/
5 years, 2 months ago (2015-10-21 20:02:07 UTC) #2
Tom Sepez
https://codereview.chromium.org/1414603003/diff/1/ipc/attachment_broker_privileged.cc File ipc/attachment_broker_privileged.cc (right): https://codereview.chromium.org/1414603003/diff/1/ipc/attachment_broker_privileged.cc#newcode45 ipc/attachment_broker_privileged.cc:45: // sets it as the global broker. Can't lazy ...
5 years, 2 months ago (2015-10-21 20:07:38 UTC) #3
erikchen
tsepez: PTAL https://codereview.chromium.org/1414603003/diff/1/ipc/attachment_broker_privileged.cc File ipc/attachment_broker_privileged.cc (right): https://codereview.chromium.org/1414603003/diff/1/ipc/attachment_broker_privileged.cc#newcode45 ipc/attachment_broker_privileged.cc:45: // sets it as the global broker. ...
5 years, 2 months ago (2015-10-21 21:54:41 UTC) #4
Avi (use Gerrit)
lgtm
5 years, 2 months ago (2015-10-21 23:49:57 UTC) #5
erikchen
avi, tsepez: PTAL I expanded this CL to also include the plumbing for PortProvider.
5 years, 2 months ago (2015-10-22 00:18:37 UTC) #6
Avi (use Gerrit)
lgtm OK
5 years, 2 months ago (2015-10-22 01:04:24 UTC) #7
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-22 17:43:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414603003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414603003/60001
5 years, 2 months ago (2015-10-22 17:50:17 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-22 20:02:09 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 20:03:48 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d8a3d902c0914bb6a903348578ee7eaca90006d4
Cr-Commit-Position: refs/heads/master@{#355625}

Powered by Google App Engine
This is Rietveld 408576698