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

Unified Diff: ios/clean/chrome/browser/ui/tab/tab_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/clean/chrome/browser/ui/tab/tab_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm b/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
index 45ce3877231a0233397de0b4fbfffe274353c5e1..a3221907c7de3f68682463a3044bae2a5ec474ef 100644
--- a/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
@@ -76,8 +76,9 @@ const BOOL kUseBottomToolbar = NO;
}
- (void)stop {
- [self.viewController dismissViewControllerAnimated:self.context.animated
- completion:nil];
+ [self.viewController.presentingViewController
+ dismissViewControllerAnimated:self.context.animated
+ completion:nil];
_webStateObserver.reset();
}

Powered by Google App Engine
This is Rietveld 408576698