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

Unified Diff: shell/application_manager/shell_impl.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/application_manager/shell_impl.h ('k') | shell/child_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/application_manager/shell_impl.cc
diff --git a/shell/application_manager/shell_impl.cc b/shell/application_manager/shell_impl.cc
index 0384ed7bc7feccffe2efb195be8bd5e0551baf54..131383eb1795d1faa6885e84fb8f104736e1d488 100644
--- a/shell/application_manager/shell_impl.cc
+++ b/shell/application_manager/shell_impl.cc
@@ -22,7 +22,8 @@ ShellImpl::ShellImpl(mojo::ApplicationPtr application,
on_application_end_(on_application_end),
application_(application.Pass()),
binding_(this) {
- binding_.set_error_handler(this);
+ binding_.set_connection_error_handler(
+ [this]() { manager_->OnShellImplError(this); });
}
ShellImpl::~ShellImpl() {
@@ -58,8 +59,4 @@ void ShellImpl::ConnectToApplication(
exposed_services.Pass(), base::Closure());
}
-void ShellImpl::OnConnectionError() {
- manager_->OnShellImplError(this);
-}
-
} // namespace shell
« no previous file with comments | « shell/application_manager/shell_impl.h ('k') | shell/child_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698