DCHECK(caller_task_runner_->BelongsToCurrentThread());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.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
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.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
scoped_refptr<AutoThreadTaskRunner> ui_task_runner = new AutoThreadTaskRunner(NIT: Prefer using `base::MakeRefCounted<AutoThreadTaskRunner>(...)` over `new` here, as is standard in Chromium.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
scoped_refptr<AutoThreadTaskRunner> ui_task_runner = new AutoThreadTaskRunner(NIT: Prefer using `base::MakeRefCounted<AutoThreadTaskRunner>(...)` over `new` here, as is standard in Chromium.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
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.
```
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
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |