blob: 896fe5b8b93c425dbaeb2968daf30b0772e50039 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash_service_registry.h"
#include "ash/ash_service.h"
#include "ash/public/mojom/constants.mojom.h"
#include "content/public/common/service_manager_connection.h"
namespace ash_service_registry {
std::unique_ptr<service_manager::Service> HandleServiceRequest(
const std::string& service_name,
service_manager::mojom::ServiceRequest request) {
return service_name == ash::mojom::kServiceName
? std::make_unique<ash::AshService>(std::move(request))
: nullptr;
}
} // namespace ash_service_registry