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

Unified Diff: services/shell/public/cpp/service_runner.h

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/public/cpp/service_runner.h
diff --git a/services/shell/public/cpp/service_runner.h b/services/shell/public/cpp/service_runner.h
index 457608cfe07e7a37d76d7eeb819f11788d960790..45b574405180b1abbe687158d62671c4defd78e8 100644
--- a/services/shell/public/cpp/service_runner.h
+++ b/services/shell/public/cpp/service_runner.h
@@ -15,17 +15,17 @@ namespace shell {
class Service;
class ServiceContext;
-// A utility for running a chromium based mojo Service. The typical use
-// case is to use when writing your MojoMain:
+// A utility for running a Service that uses //base. The typical use case is to
+// use from your ServiceMain:
//
-// MojoResult MojoMain(MojoHandle shell_handle) {
+// MojoResult ServiceMain(MojoHandle service_request_handle) {
// shell::ServiceRunner runner(new MyService);
-// return runner.Run(shell_handle);
+// return runner.Run(service_request_handle);
// }
//
// ServiceRunner takes care of chromium environment initialization and
-// shutdown, and starting a MessageLoop from which your service can run and
-// ultimately Quit().
+// shutdown, and starting a base::MessageLoop from which your service can run
+// and ultimately Quit().
class ServiceRunner {
public:
// Takes ownership of |service|.
« no previous file with comments | « services/shell/public/cpp/service_context.h ('k') | services/shell/runner/host/native_application_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698