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

Unified Diff: services/test_service/test_service_application.cc

Issue 2011593002: Make RunApplication() return a MojoResult and TerminateApplication() take one. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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/test_service/test_request_tracker_application.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/test_service/test_service_application.cc
diff --git a/services/test_service/test_service_application.cc b/services/test_service/test_service_application.cc
index c883cefd8d9250d68fb272f6ebbbad24cf92302b..af116a387c0f0ed41b72aa8dfabe99271a99a859 100644
--- a/services/test_service/test_service_application.cc
+++ b/services/test_service/test_service_application.cc
@@ -44,7 +44,7 @@ void TestServiceApplication::ReleaseRef() {
assert(ref_count_ > 0);
ref_count_--;
if (ref_count_ <= 0)
- TerminateApplication();
+ TerminateApplication(MOJO_RESULT_OK);
}
} // namespace test
@@ -52,6 +52,5 @@ void TestServiceApplication::ReleaseRef() {
MojoResult MojoMain(MojoHandle application_request) {
mojo::test::TestServiceApplication app;
- mojo::RunApplication(application_request, &app);
- return MOJO_RESULT_OK;
+ return mojo::RunApplication(application_request, &app);
}
« no previous file with comments | « services/test_service/test_request_tracker_application.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698