blob: 75e813baa074ee9d2d4d327a80013c4b23f5e435 [file] [log] [blame]
Ken Rockot2925f5002019-08-06 01:16:161// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/file_util_service.h"
6
7#include "chrome/grit/generated_resources.h"
8#include "components/strings/grit/components_strings.h"
9#include "content/public/browser/service_process_host.h"
10
11mojo::PendingRemote<chrome::mojom::FileUtilService> LaunchFileUtilService() {
12 mojo::PendingRemote<chrome::mojom::FileUtilService> remote;
13 content::ServiceProcessHost::Launch<chrome::mojom::FileUtilService>(
14 remote.InitWithNewPipeAndPassReceiver(),
15 content::ServiceProcessHost::Options()
16 .WithSandboxType(service_manager::SANDBOX_TYPE_UTILITY)
17 .WithDisplayName(IDS_UTILITY_PROCESS_FILE_UTILITY_NAME)
18 .Pass());
19 return remote;
20}