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

Side by Side Diff: services/shape_detection/shape_detection_service.cc

Issue 2701883002: service_manager: More consistent Service lifecycle API (Closed)
Patch Set: . Created 3 years, 10 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/shape_detection/shape_detection_service.h ('k') | services/tracing/service.h » ('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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/shape_detection/shape_detection_service.h" 5 #include "services/shape_detection/shape_detection_service.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "services/service_manager/public/cpp/interface_registry.h" 8 #include "services/service_manager/public/cpp/interface_registry.h"
9 #include "services/service_manager/public/cpp/service_context.h" 9 #include "services/service_manager/public/cpp/service_context.h"
10 #include "services/shape_detection/barcode_detection_impl.h" 10 #include "services/shape_detection/barcode_detection_impl.h"
(...skipping 30 matching lines...) Expand all
41 // InterfaceRegistry's connection. 41 // InterfaceRegistry's connection.
42 std::unique_ptr<service_manager::ServiceContextRef> connection_ref = 42 std::unique_ptr<service_manager::ServiceContextRef> connection_ref =
43 ref_factory_->CreateRef(); 43 ref_factory_->CreateRef();
44 registry->AddConnectionLostClosure( 44 registry->AddConnectionLostClosure(
45 base::Bind(&OnConnectionLost, base::Passed(&connection_ref))); 45 base::Bind(&OnConnectionLost, base::Passed(&connection_ref)));
46 registry->AddInterface(base::Bind(&BarcodeDetectionImpl::Create)); 46 registry->AddInterface(base::Bind(&BarcodeDetectionImpl::Create));
47 registry->AddInterface(base::Bind(&FaceDetectionProviderImpl::Create)); 47 registry->AddInterface(base::Bind(&FaceDetectionProviderImpl::Create));
48 return true; 48 return true;
49 } 49 }
50 50
51 bool ShapeDetectionService::OnStop() {
52 return true;
53 }
54
55 } // namespace shape_detection 51 } // namespace shape_detection
OLDNEW
« no previous file with comments | « services/shape_detection/shape_detection_service.h ('k') | services/tracing/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698