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

Unified Diff: services/service_manager/public/cpp/lib/service_runner.cc

Issue 2701883002: service_manager: More consistent Service lifecycle API (Closed)
Patch Set: . Created 3 years, 10 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
Index: services/service_manager/public/cpp/lib/service_runner.cc
diff --git a/services/service_manager/public/cpp/lib/service_runner.cc b/services/service_manager/public/cpp/lib/service_runner.cc
index 374a9483ca2416a4237a8cee6db957951a6be308..4ba2f58e87f22c5f4452e598fb56fce7a0fdef55 100644
--- a/services/service_manager/public/cpp/lib/service_runner.cc
+++ b/services/service_manager/public/cpp/lib/service_runner.cc
@@ -57,7 +57,7 @@ MojoResult ServiceRunner::Run(MojoHandle service_request_handle,
mojo::MakeRequest<mojom::Service>(mojo::MakeScopedHandle(
mojo::MessagePipeHandle(service_request_handle)))));
base::RunLoop run_loop;
- context_->SetConnectionLostClosure(run_loop.QuitClosure());
+ context_->SetQuitClosure(run_loop.QuitClosure());
run_loop.Run();
context_.reset();
}
« no previous file with comments | « services/service_manager/public/cpp/lib/service_context.cc ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698