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

Unified Diff: services/shell/runner/host/native_application_support.cc

Issue 2192263002: MojoMain() -> ServiceMain() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/shell/runner/host/native_application_support.cc
diff --git a/services/shell/runner/host/native_application_support.cc b/services/shell/runner/host/native_application_support.cc
index fa46f1902b97fbbcbc39708d40abf6a9de9cf2ab..b776bb60d15ed877358e05bad1c85520ba15e33a 100644
--- a/services/shell/runner/host/native_application_support.cc
+++ b/services/shell/runner/host/native_application_support.cc
@@ -85,18 +85,18 @@ bool RunNativeApplication(base::NativeLibrary app_library,
#endif // !defined(COMPONENT_BUILD)
- typedef MojoResult (*MojoMainFunction)(MojoHandle);
- MojoMainFunction main_function = reinterpret_cast<MojoMainFunction>(
- base::GetFunctionPointerFromNativeLibrary(app_library, "MojoMain"));
+ typedef MojoResult (*ServiceMainFunction)(MojoHandle);
+ ServiceMainFunction main_function = reinterpret_cast<ServiceMainFunction>(
+ base::GetFunctionPointerFromNativeLibrary(app_library, "ServiceMain"));
if (!main_function) {
- LOG(ERROR) << "MojoMain not found";
+ LOG(ERROR) << "ServiceMain not found";
return false;
}
- // |MojoMain()| takes ownership of the service handle.
+ // |ServiceMain()| takes ownership of the service handle.
MojoHandle handle = request.PassMessagePipe().release().value();
MojoResult result = main_function(handle);
if (result != MOJO_RESULT_OK) {
- LOG(ERROR) << "MojoMain returned error (result: " << result << ")";
+ LOG(ERROR) << "ServiceMain returned error (result: " << result << ")";
}
return true;
}
« no previous file with comments | « services/shell/runner/host/native_application_support.h ('k') | services/shell/tests/connect/connect_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698