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

Unified Diff: mojo/public/cpp/application/lib/run_application.cc

Issue 2008543004: Add RunMainApplication()/TerminateMainApplication() for use in MojoMain(). (Closed) Base URL: https://github.com/domokit/mojo.git@work796_run_app_returns
Patch Set: 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 | « mojo/public/cpp/application/BUILD.gn ('k') | mojo/public/cpp/application/run_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/lib/run_application.cc
diff --git a/mojo/public/cpp/application/lib/run_application.cc b/mojo/public/cpp/application/lib/run_application.cc
index 03373ef4902c9508ae5ed8f14f33af61570156a7..4ca4a1a4c435be8d7f087a7c1d8578a1e3ce5ae7 100644
--- a/mojo/public/cpp/application/lib/run_application.cc
+++ b/mojo/public/cpp/application/lib/run_application.cc
@@ -58,6 +58,11 @@ void SetCurrentResultHolder(ResultHolder* result_holder) {
} // namespace
+MojoResult RunMainApplication(MojoHandle application_request_handle,
+ ApplicationImplBase* application_impl) {
+ return RunApplication(application_request_handle, application_impl);
+}
+
MojoResult RunApplication(MojoHandle application_request_handle,
ApplicationImplBase* application_impl) {
assert(!GetCurrentResultHolder());
@@ -82,6 +87,10 @@ MojoResult RunApplication(MojoHandle application_request_handle,
return result_holder.result;
}
+void TerminateMainApplication(MojoResult result) {
+ TerminateApplication(result);
+}
+
void TerminateApplication(MojoResult result) {
RunLoop::current()->Quit();
« no previous file with comments | « mojo/public/cpp/application/BUILD.gn ('k') | mojo/public/cpp/application/run_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698