forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_win.cc
23 lines (18 loc) · 787 Bytes
/
setup_win.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2020 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/bind.h"
#include "base/functional/callback.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "chrome/updater/updater_scope.h"
#include "chrome/updater/win/setup/setup.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