Index: ios/chrome/browser/tabs/tab.mm |
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm |
index 8e017f5358fd15ce490b75102b1f452a8c079076..e57c8207e627689008bd432d1133aa3a61205e2d 100644 |
--- a/ios/chrome/browser/tabs/tab.mm |
+++ b/ios/chrome/browser/tabs/tab.mm |
@@ -725,6 +725,10 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar, |
return dialogDelegate_; |
} |
+- (BOOL)loadFinished { |
+ return [self.webController loadPhase] == web::PAGE_LOADED; |
+} |
+ |
- (void)setDialogDelegate:(id<TabDialogDelegate>)dialogDelegate { |
dialogDelegate_.reset(dialogDelegate); |
} |