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

Unified Diff: ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm

Issue 2645973005: Coordinators: let the presenting view controller dismiss. (Closed)
Patch Set: Rebased Created 3 years, 11 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
Index: ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm
diff --git a/ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm b/ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm
index ba66ba0a4da365c6ecde2cc658e21ce04eb0717e..ac8c1ec7f70df8c779a406774dd84a07d17ea643 100644
--- a/ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm
+++ b/ios/chrome/browser/ui/alert_coordinator/loading_alert_coordinator.mm
@@ -223,7 +223,9 @@ const CGFloat kPrefHeight = 300;
}
- (void)stop {
- [_presentedViewController dismissViewControllerAnimated:NO completion:nil];
+ [[_presentedViewController presentingViewController]
+ dismissViewControllerAnimated:NO
+ completion:nil];
_presentedViewController.reset();
_cancelHandler.reset();
}
« no previous file with comments | « ios/chrome/browser/payments/payment_request_coordinator.mm ('k') | ios/chrome/browser/ui/elements/selector_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698