Ken Rockot | 95fe3f6 | 2019-07-25 20:29:51 | [diff] [blame^] | 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. |
| 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 | |
| 11 | mojo::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 | } |