summaryrefslogtreecommitdiff
path: root/chromium/services/shape_detection/shape_detection_service.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 15:05:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:33:47 +0000
commite684a3455bcc29a6e3e66a004e352dea4e1141e7 (patch)
treed55b4003bde34d7d05f558f02cfd82b2a66a7aac /chromium/services/shape_detection/shape_detection_service.cc
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-e684a3455bcc29a6e3e66a004e352dea4e1141e7.tar.gz
BASELINE: Update Chromium to 72.0.3626.110 and Ninja to 1.9.0
Change-Id: Ic57220b00ecc929a893c91f5cc552f5d3e99e922 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/services/shape_detection/shape_detection_service.cc')
-rw-r--r--chromium/services/shape_detection/shape_detection_service.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/chromium/services/shape_detection/shape_detection_service.cc b/chromium/services/shape_detection/shape_detection_service.cc
index 53f59446dde..60403a4be14 100644
--- a/chromium/services/shape_detection/shape_detection_service.cc
+++ b/chromium/services/shape_detection/shape_detection_service.cc
@@ -9,7 +9,6 @@
#include "base/bind.h"
#include "base/macros.h"
-#include "services/service_manager/public/cpp/service_context.h"
#if defined(OS_WIN)
#include "services/shape_detection/barcode_detection_provider_impl.h"
#include "services/shape_detection/face_detection_provider_win.h"
@@ -30,11 +29,9 @@
namespace shape_detection {
-std::unique_ptr<service_manager::Service> ShapeDetectionService::Create() {
- return std::make_unique<ShapeDetectionService>();
-}
-
-ShapeDetectionService::ShapeDetectionService() {
+ShapeDetectionService::ShapeDetectionService(
+ service_manager::mojom::ServiceRequest request)
+ : service_binding_(this, std::move(request)) {
#if defined(OS_MACOSX)
if (__builtin_available(macOS 10.13, *)) {
vision_framework_ =
@@ -53,9 +50,6 @@ ShapeDetectionService::~ShapeDetectionService() {
}
void ShapeDetectionService::OnStart() {
- ref_factory_.reset(new service_manager::ServiceContextRefFactory(
- context()->CreateQuitClosure()));
-
#if defined(OS_ANDROID)
registry_.AddInterface(
GetJavaInterfaces()