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

Unified Diff: shell/child_process_host.cc

Issue 1219683015: Convert //shell/... to use set_connection_error_handler() instead of set_error_handler(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « shell/child_process_host.h ('k') | shell/shell_test_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/child_process_host.cc
diff --git a/shell/child_process_host.cc b/shell/child_process_host.cc
index ec51ec5dca35f688d79d836b7d27685c4a2b96fd..b0bc6ad997593bdf4c53c925fc571ecb5f8f1261 100644
--- a/shell/child_process_host.cc
+++ b/shell/child_process_host.cc
@@ -60,7 +60,7 @@ void ChildProcessHost::Start() {
CHECK(channel_info_);
controller_.Bind(mojo::InterfacePtrInfo<ChildController>(handle.Pass(), 0u));
- controller_.set_error_handler(this);
+ controller_.set_connection_error_handler([this]() { OnConnectionError(); });
CHECK(base::PostTaskAndReplyWithResult(
context_->task_runners()->blocking_pool(), FROM_HERE,
« no previous file with comments | « shell/child_process_host.h ('k') | shell/shell_test_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698