chore: convert more files away from base::Bind (#18121)
* chore: convert more files away from base::Bind * use BindOnce for JsAsker
This commit is contained in:
parent
c25c31e018
commit
0755857a0c
24 changed files with 86 additions and 71 deletions
|
@ -76,7 +76,7 @@ using InAppTransactionCallback = base::RepeatingCallback<void(
|
|||
|
||||
// Send the callback to the browser thread.
|
||||
base::PostTaskWithTraits(FROM_HERE, {content::BrowserThread::UI},
|
||||
base::Bind(callback_, converted));
|
||||
base::BindOnce(callback_, converted));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -184,8 +184,9 @@ Transaction::~Transaction() = default;
|
|||
|
||||
TransactionObserver::TransactionObserver() : weak_ptr_factory_(this) {
|
||||
obeserver_ = [[InAppTransactionObserver alloc]
|
||||
initWithCallback:base::Bind(&TransactionObserver::OnTransactionsUpdated,
|
||||
weak_ptr_factory_.GetWeakPtr())];
|
||||
initWithCallback:base::BindRepeating(
|
||||
&TransactionObserver::OnTransactionsUpdated,
|
||||
weak_ptr_factory_.GetWeakPtr())];
|
||||
}
|
||||
|
||||
TransactionObserver::~TransactionObserver() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue