feat: enable explicit IAP restoration (#21461)
This commit is contained in:
parent
53957d47d6
commit
dba8a0caa8
7 changed files with 43 additions and 23 deletions
|
@ -183,14 +183,14 @@ Transaction::Transaction(const Transaction&) = default;
|
|||
Transaction::~Transaction() = default;
|
||||
|
||||
TransactionObserver::TransactionObserver() : weak_ptr_factory_(this) {
|
||||
obeserver_ = [[InAppTransactionObserver alloc]
|
||||
observer_ = [[InAppTransactionObserver alloc]
|
||||
initWithCallback:base::BindRepeating(
|
||||
&TransactionObserver::OnTransactionsUpdated,
|
||||
weak_ptr_factory_.GetWeakPtr())];
|
||||
}
|
||||
|
||||
TransactionObserver::~TransactionObserver() {
|
||||
[obeserver_ release];
|
||||
[observer_ release];
|
||||
}
|
||||
|
||||
} // namespace in_app_purchase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue