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

Side by Side Diff: services/ui/demo/mus_demo_service.cc

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (Closed)
Patch Set: . Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ui/demo/mus_demo_service.h" 5 #include "services/ui/demo/mus_demo_service.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "services/ui/demo/mus_demo.h" 8 #include "services/ui/demo/mus_demo.h"
9 9
10 namespace ui { 10 namespace ui {
11 namespace demo { 11 namespace demo {
12 12
13 MusDemoService::MusDemoService() : mus_demo_(base::MakeUnique<MusDemo>()) {} 13 MusDemoService::MusDemoService() : mus_demo_(base::MakeUnique<MusDemo>()) {}
14 14
15 MusDemoService::~MusDemoService() {} 15 MusDemoService::~MusDemoService() {}
16 16
17 void MusDemoService::OnStart(const service_manager::Identity& identity) { 17 void MusDemoService::OnStart(const service_manager::ServiceInfo& info) {
18 mus_demo_->Start(connector()); 18 mus_demo_->Start(connector());
19 } 19 }
20 20
21 bool MusDemoService::OnConnect(const service_manager::Identity& remote_identity, 21 bool MusDemoService::OnConnect(const service_manager::ServiceInfo& remote_info,
22 service_manager::InterfaceRegistry* registry) { 22 service_manager::InterfaceRegistry* registry) {
23 return true; 23 return true;
24 } 24 }
25 25
26 } // namespace demo 26 } // namespace demo
27 } // namespace ui 27 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/demo/mus_demo_service.h ('k') | services/ui/ime/test_ime_driver/test_ime_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698