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

Side by Side Diff: services/prediction/prediction_service_impl.cc

Issue 1977023003: ApplicationConnection devolution, part 4 (the end). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_conn_devo_3.1
Patch Set: 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 unified diff | Download patch
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 "services/prediction/prediction_service_impl.h" 5 #include "services/prediction/prediction_service_impl.h"
6 6
7 #include "mojo/application/application_runner_chromium.h" 7 #include "mojo/application/application_runner_chromium.h"
8 #include "mojo/public/c/system/main.h" 8 #include "mojo/public/c/system/main.h"
9 #include "mojo/public/cpp/application/application_connection.h" 9 #include "mojo/public/cpp/application/service_provider_impl.h"
10 10
11 namespace prediction { 11 namespace prediction {
12 12
13 PredictionServiceImpl::PredictionServiceImpl( 13 PredictionServiceImpl::PredictionServiceImpl(
14 mojo::InterfaceRequest<PredictionService> request) 14 mojo::InterfaceRequest<PredictionService> request)
15 : strong_binding_(this, request.Pass()) { 15 : strong_binding_(this, request.Pass()) {
16 ProximityInfoFactory proximity_info; 16 ProximityInfoFactory proximity_info;
17 proximity_settings_ = scoped_ptr<latinime::ProximityInfo>( 17 proximity_settings_ = scoped_ptr<latinime::ProximityInfo>(
18 proximity_info.GetNativeProximityInfo()); 18 proximity_info.GetNativeProximityInfo());
19 } 19 }
(...skipping 24 matching lines...) Expand all
44 return true; 44 return true;
45 } 45 }
46 46
47 } // namespace prediction 47 } // namespace prediction
48 48
49 MojoResult MojoMain(MojoHandle application_request) { 49 MojoResult MojoMain(MojoHandle application_request) {
50 mojo::ApplicationRunnerChromium runner( 50 mojo::ApplicationRunnerChromium runner(
51 new prediction::PredictionServiceDelegate()); 51 new prediction::PredictionServiceDelegate());
52 return runner.Run(application_request); 52 return runner.Run(application_request);
53 } 53 }
OLDNEW
« no previous file with comments | « services/native_support/main.cc ('k') | services/test_service/test_request_tracker_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698