| // 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::SANDBOX_TYPE_UTILITY) |
| .WithDisplayName(IDS_UTILITY_PROCESS_FILE_UTILITY_NAME) |
| .Pass()); |
| return remote; |
| } |