DescriptionCorrects mojom::RouteProvider registration in ChildThreadImpl
We still have one instance where ChildThreadImpl is used without
ChannelMojo (utility processes launched by a service process),
causing a nullptr dereference in ChannelProxy when trying to add
the associated interface.
This CL replaces a DCHECK with a branch to avoid the crash, since
silently ignoring the call is safe and reasonable.
In examining this bug I also realized that ChildThreadImpl was
incorrectly adding the RouteProvider interface after Channel
connection, which is only safe to do in the browser, where the
remote endpoint hasn't been launched yet. So this CL fixes that
too, and clarifies the documentation in ipc_channel_proxy.h.
BUG=647251
R=jam@chromium.org
Committed: https://crrev.com/fd3d9084805b6f598ee9cb9525de745b3209e5c0
Cr-Commit-Position: refs/heads/master@{#419043}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 12 (7 generated)
|