Skip to content

Commit

Permalink
[mojo] Only allow adding valid receivers to ReceiverSet
Browse files Browse the repository at this point in the history
Bug: 1174338
Change-Id: I8a78dead21f5001cc7946244a435a38b947426ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2673172
Commit-Queue: Ken Rockot <rockot@google.com>
Auto-Submit: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#850691}
  • Loading branch information
zetafunction authored and Chromium LUCI CQ committed Feb 4, 2021
1 parent 82e1ea2 commit 39646dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojo/public/cpp/bindings/receiver_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ class ReceiverSetBase {
PendingType receiver,
Context context,
scoped_refptr<base::SequencedTaskRunner> task_runner) {
DCHECK(receiver.is_valid());
ReceiverId id = next_receiver_id_++;
DCHECK_GE(next_receiver_id_, 0u);
auto entry =
Expand Down

0 comments on commit 39646dd

Please sign in to comment.