blob: 21c2813c9f078e8dd6e07b1a9f8d02ea22c7739f [file] [log] [blame]
// Copyright 2019 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/utility/importer/profile_import_manifest.h"
#include "base/no_destructor.h"
#include "chrome/common/importer/profile_import.mojom.h"
#include "services/service_manager/public/cpp/manifest_builder.h"
const service_manager::Manifest& GetProfileImportManifest() {
static base::NoDestructor<service_manager::Manifest> manifest{
service_manager::ManifestBuilder()
.WithServiceName(chrome::mojom::kProfileImportServiceName)
.WithDisplayName("Profile Import")
.WithOptions(service_manager::ManifestOptionsBuilder()
.WithSandboxType("none")
.WithInstanceSharingPolicy(
service_manager::Manifest::
InstanceSharingPolicy::kSharedAcrossGroups)
.Build())
.ExposeCapability("import", service_manager::Manifest::InterfaceList<
chrome::mojom::ProfileImport>())
.Build()};
return *manifest;
}