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

Unified Diff: mojo/shell/external_application_registrar_connection.cc

Issue 614663003: Change ExternalApplicationRegistrar::Register API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/shell/external_application_registrar_connection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/external_application_registrar_connection.cc
diff --git a/mojo/shell/external_application_registrar_connection.cc b/mojo/shell/external_application_registrar_connection.cc
index 57498a9e16ab163215a79c41e69321788190a76a..62c49d6cea97fc40e05db2712fd9823b93e53fdc 100644
--- a/mojo/shell/external_application_registrar_connection.cc
+++ b/mojo/shell/external_application_registrar_connection.cc
@@ -53,11 +53,9 @@ void ExternalApplicationRegistrarConnection::Connect(
void ExternalApplicationRegistrarConnection::Register(
const GURL& app_url,
- ShellPtr* shell,
- base::Closure register_complete_callback) {
+ base::Callback<void(ShellPtr)> register_complete_callback) {
DCHECK(!client_socket_);
- registrar_->Register(
- String::From(app_url), Get(shell), register_complete_callback);
+ registrar_->Register(String::From(app_url), register_complete_callback);
}
void ExternalApplicationRegistrarConnection::OnConnect(
« no previous file with comments | « mojo/shell/external_application_registrar_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698