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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2926413004: Cancel dialogs for Tabs when they are removed from their TabModels. (Closed)
Patch Set: Revert to patch #1; DCHECK fix is non-essential and will be in follow-up CL Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 6dfaffb36c032fe17b0500efa6baeb8e678b3022..29a430b2bf7b37f8e56dace02223da58952e132f 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4632,6 +4632,9 @@ - (void)tabModel:(TabModel*)model
atIndex:(NSUInteger)index {
[self uninstallDelegatesForTab:tab];
+ // Cancel dialogs for |tab|'s WebState.
+ [self.dialogPresenter cancelDialogForWebState:tab.webState];
+
// Remove stored native controllers for the tab.
[_nativeControllersForTabIDs removeObjectForKey:tab.tabId];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698