1 // 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.
5 #include "chrome/browser/file_util_service.h"
7 #include "chrome/grit/generated_resources.h"
8 #include "components/strings/grit/components_strings.h"
9 #include "content/public/browser/service_process_host.h"
11 mojo::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 .WithDisplayName(IDS_UTILITY_PROCESS_FILE_UTILITY_NAME)