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

Issue 1679763002: Clean up public interface of AttachmentBrokerUnprivileged. (Closed)

Created:
4 years, 10 months ago by erikchen
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up public interface of AttachmentBrokerUnprivileged. In the old interface, a static factory method returns a scoped_ptr, and the caller had to manage the lifetime. Since this is a global object with minimal memory footprint, and is required to outlive every IPC::Channel, it's much easier for the global to never be destroyed. This also matches the interface for AttachmentBrokerPrivileged. BUG=584297 Committed: https://crrev.com/11fea2242b3a197993dbd5a1f977f9a31c6b98e4 Cr-Commit-Position: refs/heads/master@{#375674} Committed: https://crrev.com/8666287a9b42256b20692765f43c12a960398699 Cr-Commit-Position: refs/heads/master@{#375776}

Patch Set 1 #

Patch Set 2 : Compile error. #

Total comments: 6

Patch Set 3 : Comments from tsepez. #

Total comments: 4

Patch Set 4 : Comments from sergeyu. #

Patch Set 5 : Fix bug in remoting_me2me_host. Don't leave dangling pointers. #

Patch Set 6 : Rebase. Also fix compile errors in unit tests. #

Patch Set 7 : Remove CHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -77 lines) Patch
M components/nacl/broker/nacl_broker_listener.h View 2 chunks +0 lines, -2 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M components/nacl/loader/nacl_listener.h View 2 chunks +0 lines, -3 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/child/child_thread_impl.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download
M ipc/attachment_broker.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ipc/attachment_broker.cc View 1 2 3 4 5 6 2 chunks +14 lines, -3 lines 0 comments Download
M ipc/attachment_broker_mac_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged.h View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/attachment_broker_privileged.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M ipc/attachment_broker_privileged_win_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_unprivileged.h View 1 2 3 4 1 chunk +8 lines, -10 lines 0 comments Download
M ipc/attachment_broker_unprivileged.cc View 1 2 3 4 4 chunks +56 lines, -12 lines 0 comments Download
M remoting/host/desktop_process.h View 2 chunks +0 lines, -4 lines 0 comments Download
M remoting/host/desktop_process.cc View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 3 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 56 (26 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/1679763002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/1
4 years, 10 months ago (2016-02-08 02:06:37 UTC) #2
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/170476)
4 years, 10 months ago (2016-02-08 03:12:43 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/1679763002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/20001
4 years, 10 months ago (2016-02-08 18:19:39 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 21:41:59 UTC) #8
erikchen
tsepez: Please review ipc/
4 years, 10 months ago (2016-02-08 23:53:43 UTC) #12
Tom Sepez
lgtm https://codereview.chromium.org/1679763002/diff/20001/ipc/attachment_broker.h File ipc/attachment_broker.h (right): https://codereview.chromium.org/1679763002/diff/20001/ipc/attachment_broker.h#newcode104 ipc/attachment_broker.h:104: // Whether the process's broker is privileged. nit: ...
4 years, 10 months ago (2016-02-09 00:26:19 UTC) #13
erikchen
https://codereview.chromium.org/1679763002/diff/20001/ipc/attachment_broker.h File ipc/attachment_broker.h (right): https://codereview.chromium.org/1679763002/diff/20001/ipc/attachment_broker.h#newcode104 ipc/attachment_broker.h:104: // Whether the process's broker is privileged. On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 02:38:51 UTC) #14
erikchen
avi: Please review content/
4 years, 10 months ago (2016-02-09 02:39:34 UTC) #16
Avi (use Gerrit)
lgtm
4 years, 10 months ago (2016-02-09 02:43:50 UTC) #17
erikchen
mseaborn: Please review components/nacl/ sergeyu: Please review remoting/host/
4 years, 10 months ago (2016-02-10 18:25:38 UTC) #19
Mark Seaborn
On 2016/02/10 18:25:38, erikchen wrote: > mseaborn: Please review components/nacl/ LGTM
4 years, 10 months ago (2016-02-10 19:35:55 UTC) #20
Sergey Ulanov
remoting lgtm https://codereview.chromium.org/1679763002/diff/40001/remoting/host/desktop_process.cc File remoting/host/desktop_process.cc (right): https://codereview.chromium.org/1679763002/diff/40001/remoting/host/desktop_process.cc#newcode151 remoting/host/desktop_process.cc:151: IPC::AttachmentBroker* global = IPC::AttachmentBroker::GetGlobal(); nit: call this ...
4 years, 10 months ago (2016-02-10 19:36:35 UTC) #21
erikchen
https://codereview.chromium.org/1679763002/diff/40001/remoting/host/desktop_process.cc File remoting/host/desktop_process.cc (right): https://codereview.chromium.org/1679763002/diff/40001/remoting/host/desktop_process.cc#newcode151 remoting/host/desktop_process.cc:151: IPC::AttachmentBroker* global = IPC::AttachmentBroker::GetGlobal(); On 2016/02/10 19:36:35, Sergey Ulanov ...
4 years, 10 months ago (2016-02-10 21:04:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1679763002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/80001
4 years, 10 months ago (2016-02-10 21:09:36 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 10 months ago (2016-02-10 22:46:33 UTC) #28
erikchen
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/1688433005/ by erikchen@chromium.org. ...
4 years, 10 months ago (2016-02-10 23:08:38 UTC) #29
erikchen
tsepez: PTAL I added a method DeregisterBrokerCommunicationChannel to clear the channel, so that we don't ...
4 years, 10 months ago (2016-02-16 19:14:50 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1679763002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/100001
4 years, 10 months ago (2016-02-16 19:16:44 UTC) #33
Tom Sepez
++lgm
4 years, 10 months ago (2016-02-16 19:32:13 UTC) #34
Tom Sepez
On 2016/02/16 19:32:13, Tom Sepez wrote: > ++lgm ++lgtm that is.
4 years, 10 months ago (2016-02-16 19:32:34 UTC) #35
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/180689)
4 years, 10 months ago (2016-02-16 19:40:25 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1679763002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/120001
4 years, 10 months ago (2016-02-16 20:37:21 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 10 months ago (2016-02-16 22:01:05 UTC) #42
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d00f5b6987750d39a5cc4859ee19c9ca89ed0cd9 Cr-Commit-Position: refs/heads/master@{#374759}
4 years, 10 months ago (2016-02-16 22:31:58 UTC) #44
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/11fea2242b3a197993dbd5a1f977f9a31c6b98e4 Cr-Commit-Position: refs/heads/master@{#375674}
4 years, 10 months ago (2016-02-16 22:55:12 UTC) #46
erikchen
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1704743002/ by erikchen@chromium.org. ...
4 years, 10 months ago (2016-02-17 01:20:26 UTC) #47
erikchen
On 2016/02/17 01:20:26, erikchen wrote: > A revert of this CL (patchset #6 id:120001) has ...
4 years, 10 months ago (2016-02-17 02:38:40 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1679763002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679763002/140001
4 years, 10 months ago (2016-02-17 02:40:32 UTC) #52
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-02-17 04:09:28 UTC) #54
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 04:12:29 UTC) #56
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8666287a9b42256b20692765f43c12a960398699
Cr-Commit-Position: refs/heads/master@{#375776}

Powered by Google App Engine
This is Rietveld 408576698