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

Side by Side Diff: apps/moterm/main.cc

Issue 2020453003: Convert ViewProviderApp and ContentViewerApp to implement ApplicationImplBase instead of Applicatio… (Closed) Base URL: https://github.com/domokit/mojo.git@work796_no_run_main_app
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | apps/moterm/moterm_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the "main" for the embeddable Moterm terminal view, which provides 5 // This is the "main" for the embeddable Moterm terminal view, which provides
6 // services to the thing embedding it. (This is not very useful as a "top-level" 6 // services to the thing embedding it. (This is not very useful as a "top-level"
7 // application.) 7 // application.)
8 8
9 #include "apps/moterm/moterm_app.h" 9 #include "apps/moterm/moterm_app.h"
10 #include "mojo/application/application_runner_chromium.h" 10 #include "mojo/environment/scoped_chromium_init.h"
11 #include "mojo/public/c/system/main.h" 11 #include "mojo/public/c/system/main.h"
12 #include "mojo/public/cpp/application/run_application.h"
12 13
13 MojoResult MojoMain(MojoHandle application_request) { 14 MojoResult MojoMain(MojoHandle application_request) {
14 mojo::ApplicationRunnerChromium runner(new MotermApp()); 15 mojo::ScopedChromiumInit init;
15 return runner.Run(application_request); 16 MotermApp moterm_app;
17 return mojo::RunApplication(application_request, &moterm_app);
16 } 18 }
OLDNEW
« no previous file with comments | « no previous file | apps/moterm/moterm_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698