Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: ios/chrome/browser/payments/payment_method_selection_coordinator.mm

Issue 2710683012: [Payment Request] Payment request summary view pending state (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments_strings.grdp ('k') | ios/chrome/browser/payments/payment_request_coordinator.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/payments/payment_method_selection_coordinator.mm
diff --git a/ios/chrome/browser/payments/payment_method_selection_coordinator.mm b/ios/chrome/browser/payments/payment_method_selection_coordinator.mm
index a6a614ac1382d506b3a26df98ce09a3a65e5b860..4d32e858aca49319783b1c2e8099f0b2e8ff54b2 100644
--- a/ios/chrome/browser/payments/payment_method_selection_coordinator.mm
+++ b/ios/chrome/browser/payments/payment_method_selection_coordinator.mm
@@ -67,6 +67,10 @@
static_cast<int64_t>(0.2 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
PaymentMethodSelectionCoordinator* strongSelf = weakSelf;
+ // Early return if the coordinator has been deallocated.
+ if (!strongSelf)
+ return;
+
strongSelf.viewController.view.userInteractionEnabled = YES;
[strongSelf.delegate
paymentMethodSelectionCoordinator:strongSelf
« no previous file with comments | « components/payments_strings.grdp ('k') | ios/chrome/browser/payments/payment_request_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698