blob: 125726e08fe18750b5b552759cf6dfec93876792 [file] [log] [blame]
// Copyright 2021 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/setup.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/task/thread_pool.h"
#include "chrome/updater/posix/setup.h"
#include "chrome/updater/updater_scope.h"
namespace updater {
void InstallCandidate(UpdaterScope scope,
base::OnceCallback<void(int)> callback) {
base::ThreadPool::PostTaskAndReplyWithResult(FROM_HERE, {base::MayBlock()},
base::BindOnce(&Setup, scope),
std::move(callback));
}
} // namespace updater