refactor: migrate base::ThreadPool() as trait to base::ThreadPool:: API (#22555)
This commit is contained in:
parent
2159b4af4f
commit
3b08736ae2
8 changed files with 24 additions and 24 deletions
|
@ -1949,9 +1949,8 @@ void WebContents::Print(gin_helper::Arguments* args) {
|
|||
settings.SetIntKey(printing::kSettingDpiVertical, dpi);
|
||||
}
|
||||
|
||||
base::PostTaskAndReplyWithResult(
|
||||
FROM_HERE,
|
||||
{base::ThreadPool(), base::MayBlock(), base::TaskPriority::USER_BLOCKING},
|
||||
base::ThreadPool::PostTaskAndReplyWithResult(
|
||||
FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_BLOCKING},
|
||||
base::BindOnce(&GetDefaultPrinterAsync),
|
||||
base::BindOnce(&WebContents::OnGetDefaultPrinter,
|
||||
weak_factory_.GetWeakPtr(), std::move(settings),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue