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

Issue 2343783003: Corrects mojom::RouteProvider registration in ChildThreadImpl (Closed)

Created:
4 years, 3 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 3 months ago
Reviewers:
jam
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Corrects 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M content/child/child_thread_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 chunk +6 lines, -2 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
Ken Rockot(use gerrit already)
4 years, 3 months ago (2016-09-15 16:34:06 UTC) #4
jam
lgtm
4 years, 3 months ago (2016-09-15 23:51:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343783003/1
4 years, 3 months ago (2016-09-15 23:52:59 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-15 23:57:48 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 00:00:53 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fd3d9084805b6f598ee9cb9525de745b3209e5c0
Cr-Commit-Position: refs/heads/master@{#419043}

Powered by Google App Engine
This is Rietveld 408576698