#include "chrome/updater/util/linux_util.h"
#include <optional>
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/functional/callback.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "chrome/updater/constants.h"
#include "chrome/updater/registration_data.h"
#include "chrome/updater/updater_branding.h"
#include "chrome/updater/updater_scope.h"
#include "chrome/updater/util/posix_util.h"
#include "chrome/updater/util/util.h"
namespace updater {
namespace {
constexpr base::FilePath::CharType kSystemDataPath[] = …);
constexpr base::FilePath::CharType kUserRelativeDataPath[] = …);
base::FilePath GetUpdaterFolderName() { … }
}
const char kLauncherName[] = …;
base::FilePath GetExecutableRelativePath() { … }
std::optional<base::FilePath> GetInstallDirectory(UpdaterScope scope) { … }
std::optional<base::FilePath> GetUpdateServiceLauncherPath(UpdaterScope scope) { … }
bool MigrateLegacyUpdaters(
UpdaterScope scope,
base::RepeatingCallback<void(const RegistrationRequest&)>
register_callback) { … }
}