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

Unified Diff: services/clipboard/main.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased 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/authentication/main.cc ('k') | services/device_info/device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/clipboard/main.cc
diff --git a/services/clipboard/main.cc b/services/clipboard/main.cc
index 80bab3c5c380792fde0b59004ecb3cb1badfa473..8e6fc1597c2bef531984bc91d0c42ee6ee44e30d 100644
--- a/services/clipboard/main.cc
+++ b/services/clipboard/main.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl_base.h"
#include "mojo/public/cpp/application/run_application.h"
@@ -32,6 +33,7 @@ class ClipboardApp : public mojo::ApplicationImplBase {
} // namespace
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
ClipboardApp clipboard_app;
- return mojo::RunMainApplication(application_request, &clipboard_app);
+ return mojo::RunApplication(application_request, &clipboard_app);
}
« no previous file with comments | « services/authentication/main.cc ('k') | services/device_info/device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698