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

Issue 1292263003: ipc: Use a global for the process's attachment broker. (Closed)

Created:
5 years, 4 months ago by erikchen
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ipc_message2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ipc: Use a global for the process's attachment broker. This eliminates the need for a lot of plumbing, at the expense of yet another global. BUG=493414 Committed: https://crrev.com/5708aae6ec926bddd69f3e9058f129d10a0d1873 Cr-Commit-Position: refs/heads/master@{#348649}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : upload #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Rebase. #

Patch Set 8 : Comments from tsepez. #

Patch Set 9 : Rebase errors. #

Total comments: 2

Patch Set 10 : Comments from avi. #

Patch Set 11 : Comments from avi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -181 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 4 chunks +14 lines, -13 lines 0 comments Download
M content/child/npapi/np_channel_base.h View 3 chunks +2 lines, -8 lines 0 comments Download
M content/child/npapi/np_channel_base.cc View 4 chunks +4 lines, -7 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -18 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 2 3 4 5 6 3 chunks +0 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 6 3 chunks +1 line, -4 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -4 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_channel.h View 2 chunks +2 lines, -4 lines 0 comments Download
M content/plugin/plugin_channel.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M content/plugin/plugin_thread.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/public/child/child_thread.h View 2 chunks +1 line, -4 lines 0 comments Download
M content/public/common/child_process_host.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/mock_render_thread.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/npapi/plugin_channel_host.h View 2 chunks +2 lines, -8 lines 0 comments Download
M content/renderer/npapi/plugin_channel_host.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M content/renderer/npapi/webplugin_delegate_proxy.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ipc/attachment_broker.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ipc/attachment_broker.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M ipc/attachment_broker_privileged_win_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_channel_nacl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ipc/ipc_channel_nacl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M ipc/ipc_channel_posix.h View 2 chunks +1 line, -5 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 5 chunks +5 lines, -6 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 1 2 3 4 5 6 15 chunks +18 lines, -18 lines 0 comments Download
M ipc/ipc_channel_win.h View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 2 3 4 5 6 6 chunks +7 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 64 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/20001
5 years, 4 months ago (2015-08-14 01:09:12 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/84859) linux_chromium_rel_ng on ...
5 years, 4 months ago (2015-08-14 01:29:44 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/20001
5 years, 3 months ago (2015-08-25 21:03:13 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/104178)
5 years, 3 months ago (2015-08-25 21:07:03 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/60001
5 years, 3 months ago (2015-08-26 00:32:51 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/98467)
5 years, 3 months ago (2015-08-26 01:24:30 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/100001
5 years, 3 months ago (2015-08-27 00:08:42 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/100001
5 years, 3 months ago (2015-08-27 00:24:16 UTC) #18
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 3 months ago (2015-08-27 00:24:19 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/120001
5 years, 3 months ago (2015-08-27 00:33:42 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-27 01:56:11 UTC) #24
erikchen
tsepez: Please review.
5 years, 3 months ago (2015-08-28 00:35:35 UTC) #26
Tom Sepez
Doesn't seem like you need to do the thread-safety yourself: // The LazyInstance<Type, Traits> class ...
5 years, 3 months ago (2015-08-31 16:59:24 UTC) #27
erikchen
On 2015/08/31 16:59:24, Tom Sepez wrote: > Doesn't seem like you need to do the ...
5 years, 3 months ago (2015-08-31 17:36:40 UTC) #28
erikchen
On 2015/08/31 17:36:40, erikchen wrote: > On 2015/08/31 16:59:24, Tom Sepez wrote: > > Doesn't ...
5 years, 3 months ago (2015-09-10 01:01:08 UTC) #29
Tom Sepez
https://codereview.chromium.org/1292263003/diff/120001/ipc/attachment_broker.h File ipc/attachment_broker.h (right): https://codereview.chromium.org/1292263003/diff/120001/ipc/attachment_broker.h#newcode54 ipc/attachment_broker.h:54: // for ensuring that |broker| stays alive for the ...
5 years, 3 months ago (2015-09-11 15:58:30 UTC) #30
Tom Sepez
> https://codereview.chromium.org/1292263003/diff/120001/ipc/attachment_broker_privileged_win_unittest.cc#newcode428 > ipc/attachment_broker_privileged_win_unittest.cc:428: > IPC::AttachmentBroker::SetGlobal(&broker); > This goes out of scope while the process ...
5 years, 3 months ago (2015-09-11 16:04:07 UTC) #31
erikchen
https://codereview.chromium.org/1292263003/diff/120001/ipc/attachment_broker.h File ipc/attachment_broker.h (right): https://codereview.chromium.org/1292263003/diff/120001/ipc/attachment_broker.h#newcode54 ipc/attachment_broker.h:54: // for ensuring that |broker| stays alive for the ...
5 years, 3 months ago (2015-09-11 20:16:02 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/160001
5 years, 3 months ago (2015-09-11 20:17:46 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/53136)
5 years, 3 months ago (2015-09-11 20:34:50 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/180001
5 years, 3 months ago (2015-09-11 21:08:45 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/112545)
5 years, 3 months ago (2015-09-11 21:46:51 UTC) #40
erikchen
avi: Looking for a content/ review.
5 years, 3 months ago (2015-09-11 21:54:26 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/180001
5 years, 3 months ago (2015-09-11 22:31:42 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/98917)
5 years, 3 months ago (2015-09-11 22:43:45 UTC) #47
Avi (use Gerrit)
https://codereview.chromium.org/1292263003/diff/180001/content/common/child_process_host_impl.cc File content/common/child_process_host_impl.cc (right): https://codereview.chromium.org/1292263003/diff/180001/content/common/child_process_host_impl.cc#newcode58 content/common/child_process_host_impl.cc:58: return &g_attachment_broker.Get(); What? This is literally a double-checked lock, ...
5 years, 3 months ago (2015-09-11 23:24:40 UTC) #48
erikchen
avi: PTAL https://codereview.chromium.org/1292263003/diff/180001/content/common/child_process_host_impl.cc File content/common/child_process_host_impl.cc (right): https://codereview.chromium.org/1292263003/diff/180001/content/common/child_process_host_impl.cc#newcode58 content/common/child_process_host_impl.cc:58: return &g_attachment_broker.Get(); On 2015/09/11 23:24:40, Avi wrote: ...
5 years, 3 months ago (2015-09-12 01:06:31 UTC) #49
Avi (use Gerrit)
On 2015/09/12 01:06:31, erikchen wrote: > avi: PTAL > > https://codereview.chromium.org/1292263003/diff/180001/content/common/child_process_host_impl.cc > File content/common/child_process_host_impl.cc (right): ...
5 years, 3 months ago (2015-09-12 02:39:18 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/220001
5 years, 3 months ago (2015-09-12 17:17:44 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/52191) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-12 20:19:28 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/220001
5 years, 3 months ago (2015-09-13 17:50:19 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/69219)
5 years, 3 months ago (2015-09-13 23:51:48 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292263003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292263003/220001
5 years, 3 months ago (2015-09-14 17:13:24 UTC) #61
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 3 months ago (2015-09-14 17:45:23 UTC) #62
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/5708aae6ec926bddd69f3e9058f129d10a0d1873 Cr-Commit-Position: refs/heads/master@{#348649}
5 years, 3 months ago (2015-09-14 17:46:11 UTC) #63
commit-bot: I haz the power
5 years, 2 months ago (2015-09-23 12:33:56 UTC) #64
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5708aae6ec926bddd69f3e9058f129d10a0d1873
Cr-Commit-Position: refs/heads/master@{#348649}

Powered by Google App Engine
This is Rietveld 408576698