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

Unified Diff: mojo/public/cpp/bindings/lib/multiplex_router.cc

Issue 2185723002: Eliminate deferred destruction of AssociatedGroupController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/multiplex_router.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/multiplex_router.cc
diff --git a/mojo/public/cpp/bindings/lib/multiplex_router.cc b/mojo/public/cpp/bindings/lib/multiplex_router.cc
index 922cb6ce6111ae3ef702178457fb0671d969ad7b..06ece75447c95ec05893f7ede0b12552f3c5544c 100644
--- a/mojo/public/cpp/bindings/lib/multiplex_router.cc
+++ b/mojo/public/cpp/bindings/lib/multiplex_router.cc
@@ -285,8 +285,8 @@ MultiplexRouter::MultiplexRouter(
bool set_interface_id_namesapce_bit,
ScopedMessagePipeHandle message_pipe,
scoped_refptr<base::SingleThreadTaskRunner> runner)
- : AssociatedGroupController(base::ThreadTaskRunnerHandle::Get()),
- set_interface_id_namespace_bit_(set_interface_id_namesapce_bit),
+ : set_interface_id_namespace_bit_(set_interface_id_namesapce_bit),
+ task_runner_(runner),
header_validator_(this),
connector_(std::move(message_pipe),
Connector::MULTI_THREADED_SEND,
@@ -298,6 +298,7 @@ MultiplexRouter::MultiplexRouter(
encountered_error_(false),
paused_(false),
testing_mode_(false) {
+ DCHECK(task_runner_->BelongsToCurrentThread());
// Always participate in sync handle watching, because even if it doesn't
// expect sync requests during sync handle watching, it may still need to
// dispatch messages to associated endpoints on a different thread.
« no previous file with comments | « mojo/public/cpp/bindings/lib/multiplex_router.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698