blob: e15acca31b20be6113f491b544c2ea2fb21e2b75 [file] [log] [blame]
Ken Rockot95fe3f62019-07-25 20:29:511// 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/win/util_win_service.h"
6
7#include "chrome/grit/generated_resources.h"
8#include "content/public/browser/sandbox_type.h"
9#include "content/public/browser/service_process_host.h"
10
11mojo::Remote<chrome::mojom::UtilWin> LaunchUtilWinServiceInstance() {
12 return content::ServiceProcessHost::Launch<chrome::mojom::UtilWin>(
13 content::ServiceProcessHost::Options()
14 .WithDisplayName(IDS_UTILITY_PROCESS_UTILITY_WIN_NAME)
15 .WithSandboxType(service_manager::SANDBOX_TYPE_NO_SANDBOX)
16 .Pass());
17}