| // Copyright 2022 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "chrome/updater/ipc/ipc_names.h" |
| #include "chrome/updater/linux/ipc_constants.h" |
| #include "chrome/updater/updater_scope.h" |
| #include "mojo/public/cpp/platform/named_platform_channel.h" |
| mojo::NamedPlatformChannel::ServerName GetUpdateServiceInternalServerName( |
| return GetActiveDutyInternalSocketPath(scope).AsUTF8Unsafe(); |
| mojo::NamedPlatformChannel::ServerName GetUpdateServiceServerName( |
| std::optional<base::FilePath> socket = GetActiveDutySocketPath(scope); |
| return socket->AsUTF8Unsafe(); |