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