remoting: PC Process Child Implementation [chromium/src : main]

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
Jun 10, 2026, 9:06:12 PMJun 10
to chromium...@chromium.org, chromotin...@chromium.org

Yuwei Huang added 1 comment

File remoting/host/peer_connection_process.cc
Line 25, Patchset 4 (Latest): DCHECK(caller_task_runner_->BelongsToCurrentThread());
Yuwei Huang . unresolved

BUG: `caller_task_runner_` is set to `nullptr` in `OnChannelError()` during shutdown. When the `PeerConnectionProcess` is subsequently destroyed, this `DCHECK` will dereference a null pointer and crash the process during exit.

Consider adding a null check:
```cpp
if (caller_task_runner_) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
}
```
Or simply remove the `DCHECK`.

---

Human comment: TBH you should just use `SEQUENCE_CHECKER` then you don't need to worry about it.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
Gerrit-Change-Number: 7919003
Gerrit-PatchSet: 4
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Jun 2026 01:05:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yuwei Huang (Gerrit)

unread,
Jun 10, 2026, 9:39:13 PMJun 10
to chromium...@chromium.org, chromotin...@chromium.org

Yuwei Huang added 1 comment

File remoting/host/peer_connection_process.cc
Line 25, Patchset 4: DCHECK(caller_task_runner_->BelongsToCurrentThread());
Yuwei Huang . resolved

BUG: `caller_task_runner_` is set to `nullptr` in `OnChannelError()` during shutdown. When the `PeerConnectionProcess` is subsequently destroyed, this `DCHECK` will dereference a null pointer and crash the process during exit.

Consider adding a null check:
```cpp
if (caller_task_runner_) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
}
```
Or simply remove the `DCHECK`.

---

Human comment: TBH you should just use `SEQUENCE_CHECKER` then you don't need to worry about it.

Yuwei Huang

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
    Gerrit-Change-Number: 7919003
    Gerrit-PatchSet: 5
    Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Comment-Date: Thu, 11 Jun 2026 01:38:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Yuwei Huang <yuw...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuwei Huang (Gerrit)

    unread,
    Jun 10, 2026, 9:47:01 PMJun 10
    to chromium...@chromium.org, chromotin...@chromium.org

    Yuwei Huang added 1 comment

    File remoting/host/peer_connection_process_main.cc
    Line 37, Patchset 5 (Latest): scoped_refptr<AutoThreadTaskRunner> ui_task_runner = new AutoThreadTaskRunner(
    Yuwei Huang . unresolved

    NIT: Prefer using `base::MakeRefCounted<AutoThreadTaskRunner>(...)` over `new` here, as is standard in Chromium.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
      Gerrit-Change-Number: 7919003
      Gerrit-PatchSet: 5
      Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Comment-Date: Thu, 11 Jun 2026 01:46:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Yuwei Huang (Gerrit)

      unread,
      Jun 10, 2026, 9:55:01 PMJun 10
      to chromium...@chromium.org, chromotin...@chromium.org

      Yuwei Huang added 1 comment

      File remoting/host/peer_connection_process_main.cc
      Line 37, Patchset 5: scoped_refptr<AutoThreadTaskRunner> ui_task_runner = new AutoThreadTaskRunner(
      Yuwei Huang . resolved

      NIT: Prefer using `base::MakeRefCounted<AutoThreadTaskRunner>(...)` over `new` here, as is standard in Chromium.

      Yuwei Huang

      Done

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
        Gerrit-Change-Number: 7919003
        Gerrit-PatchSet: 6
        Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Comment-Date: Thu, 11 Jun 2026 01:54:50 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Yuwei Huang <yuw...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Yuwei Huang (Gerrit)

        unread,
        Jun 10, 2026, 9:55:28 PMJun 10
        to Joe Downing, chromium...@chromium.org, chromotin...@chromium.org
        Attention needed from Joe Downing

        Yuwei Huang voted and added 1 comment

        Votes added by Yuwei Huang

        Commit-Queue+1

        1 comment

        Patchset-level comments
        File-level comment, Patchset 6 (Latest):
        Yuwei Huang . resolved

        PTAL thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joe Downing
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
        Gerrit-Change-Number: 7919003
        Gerrit-PatchSet: 6
        Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
        Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Attention: Joe Downing <joe...@chromium.org>
        Gerrit-Comment-Date: Thu, 11 Jun 2026 01:55:05 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Joe Downing (Gerrit)

        unread,
        Jun 11, 2026, 3:27:34 PMJun 11
        to Yuwei Huang, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
        Attention needed from Yuwei Huang

        Joe Downing voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Yuwei Huang
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
          Gerrit-Change-Number: 7919003
          Gerrit-PatchSet: 7
          Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
          Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Comment-Date: Thu, 11 Jun 2026 19:27:18 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Yuwei Huang (Gerrit)

          unread,
          Jun 18, 2026, 5:44:39 PM (10 days ago) Jun 18
          to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org

          Yuwei Huang voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
          Gerrit-Change-Number: 7919003
          Gerrit-PatchSet: 11
          Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
          Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Comment-Date: Thu, 18 Jun 2026 21:44:16 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Jun 18, 2026, 6:22:30 PM (10 days ago) Jun 18
          to Yuwei Huang, Joe Downing, chromium...@chromium.org, chromotin...@chromium.org

          Chromium LUCI CQ submitted the change with unreviewed changes

          Unreviewed changes

          7 is the latest approved patch-set.
          The change was submitted with unreviewed changes in the following files:

          ```
          The name of the file: remoting/host/peer_connection_process.cc
          Insertions: 0, Deletions: 8.

          The diff is too large to show. Please review the diff.
          ```
          ```
          The name of the file: remoting/host/peer_connection_process.h
          Insertions: 0, Deletions: 4.

          The diff is too large to show. Please review the diff.
          ```

          Change information

          Commit message:
          remoting: PC Process Child Implementation

          Implement the child process side for the dedicated Peer Connection (PC)
          process. This includes:
          - PeerConnectionProcess class which implements the
          mojom::PeerConnectionProcessControl interface and handles Mojo
          bootstrap.
          - PeerConnectionProcessMain entry point.
          - Registering the entry point in host_main.cc under the
          "peer_connection" process type.

          TAG=agy
          CONV=bf005916-ada6-4139-af52-be0884b5cbf0
          Bug: 502281489
          Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
          Commit-Queue: Yuwei Huang <yuw...@chromium.org>
          Reviewed-by: Joe Downing <joe...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1649347}
          Files:
          • M remoting/host/BUILD.gn
          • M remoting/host/host_main.cc
          • A remoting/host/peer_connection_process.cc
          • A remoting/host/peer_connection_process.h
          • A remoting/host/peer_connection_process_main.cc
          Change size: L
          Delta: 5 files changed, 250 insertions(+), 0 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Joe Downing
          Open in Gerrit
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: merged
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I4e4ba2a81ec586dc4200416914bd984a247114b5
          Gerrit-Change-Number: 7919003
          Gerrit-PatchSet: 12
          Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
          Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages