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

Unified Diff: services/shell/public/cpp/lib/shell_connection.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « services/shell/public/cpp/lib/connection_impl.cc ('k') | services/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/shell_connection.cc
diff --git a/services/shell/public/cpp/lib/shell_connection.cc b/services/shell/public/cpp/lib/shell_connection.cc
index 8b1ad3fbb6d60982dbfe56f6ac0867883ecc66dc..2f6b15031a93b4d3e6fad196c8c4e6fa04813eb8 100644
--- a/services/shell/public/cpp/lib/shell_connection.cc
+++ b/services/shell/public/cpp/lib/shell_connection.cc
@@ -63,7 +63,8 @@ void ShellConnection::Initialize(mojom::IdentityPtr identity,
callback.Run(std::move(pending_connector_request_));
DCHECK(binding_.is_bound());
- binding_.set_connection_error_handler([this] { OnConnectionError(); });
+ binding_.set_connection_error_handler(
+ base::Bind(&ShellConnection::OnConnectionError, base::Unretained(this)));
client_->Initialize(connector_.get(), identity_, id);
}
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.cc ('k') | services/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698