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

Side by Side Diff: services/media/audio/audio_server_app.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, 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 | « services/log/main.cc ('k') | services/nacl/nonsfi/content_handler_main_nexe.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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "mojo/environment/scoped_chromium_init.h"
6 #include "mojo/public/c/system/main.h" 7 #include "mojo/public/c/system/main.h"
7 #include "mojo/public/cpp/application/run_application.h" 8 #include "mojo/public/cpp/application/run_application.h"
8 #include "mojo/public/cpp/application/service_provider_impl.h" 9 #include "mojo/public/cpp/application/service_provider_impl.h"
9 #include "services/media/audio/audio_server_app.h" 10 #include "services/media/audio/audio_server_app.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 namespace media { 13 namespace media {
13 namespace audio { 14 namespace audio {
14 15
15 AudioServerApp::AudioServerApp() {} 16 AudioServerApp::AudioServerApp() {}
(...skipping 10 matching lines...) Expand all
26 bindings_.AddBinding(&server_impl_, audio_server_request.Pass()); 27 bindings_.AddBinding(&server_impl_, audio_server_request.Pass());
27 }); 28 });
28 return true; 29 return true;
29 } 30 }
30 31
31 } // namespace audio 32 } // namespace audio
32 } // namespace media 33 } // namespace media
33 } // namespace mojo 34 } // namespace mojo
34 35
35 MojoResult MojoMain(MojoHandle app_request) { 36 MojoResult MojoMain(MojoHandle app_request) {
37 mojo::ScopedChromiumInit init;
36 mojo::media::audio::AudioServerApp audio_server_app; 38 mojo::media::audio::AudioServerApp audio_server_app;
37 return mojo::RunMainApplication(app_request, &audio_server_app); 39 return mojo::RunApplication(app_request, &audio_server_app);
38 } 40 }
OLDNEW
« no previous file with comments | « services/log/main.cc ('k') | services/nacl/nonsfi/content_handler_main_nexe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698