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

Unified Diff: services/ui/input_manager/main.cc

Issue 2015363003: Yet more ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work797-x-work796_no_run_main_app
Patch Set: rebased again 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/ui/input_manager/input_manager_app.cc ('k') | services/ui/launcher/launch_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/input_manager/main.cc
diff --git a/services/ui/input_manager/main.cc b/services/ui/input_manager/main.cc
index 286f898965c588b7cab3de8ec7a44e09df93cc0a..ed3768aa66daf8e0cdcb1e9160c4cff92efe7e1e 100644
--- a/services/ui/input_manager/main.cc
+++ b/services/ui/input_manager/main.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/application/application_runner_chromium.h"
+#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/public/c/system/main.h"
+#include "mojo/public/cpp/application/run_application.h"
#include "services/ui/input_manager/input_manager_app.h"
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunnerChromium runner(new input_manager::InputManagerApp);
- return runner.Run(application_request);
+ mojo::ScopedChromiumInit init;
+ input_manager::InputManagerApp input_manager_app;
+ return mojo::RunApplication(application_request, &input_manager_app);
}
« no previous file with comments | « services/ui/input_manager/input_manager_app.cc ('k') | services/ui/launcher/launch_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698