blob: e3a4d88412b3bfae07b4d43d8f2074e224eb8d5f [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/browser/file_util_service.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/service_process_host.h"
mojo::PendingRemote<chrome::mojom::FileUtilService> LaunchFileUtilService() {
mojo::PendingRemote<chrome::mojom::FileUtilService> remote;
content::ServiceProcessHost::Launch<chrome::mojom::FileUtilService>(
remote.InitWithNewPipeAndPassReceiver(),
content::ServiceProcessHost::Options()
.WithSandboxType(service_manager::SandboxType::kUtility)
.WithDisplayName(IDS_UTILITY_PROCESS_FILE_UTILITY_NAME)
.Pass());
return remote;
}