Index: ios/chrome/browser/tabs/tab.mm |
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm |
index 6627920e9cbf37542a887b480a8e354fde20375c..de2deed9aba98aab4cad4bb1b02f6bb9ff6e371e 100644 |
--- a/ios/chrome/browser/tabs/tab.mm |
+++ b/ios/chrome/browser/tabs/tab.mm |
@@ -1165,12 +1165,6 @@ - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab { |
currentIndex:sessionTab->current_navigation_index]; |
} |
-- (void)reload { |
- // TODO(crbug.com/661671): Convert callers to go through CRWWebController |
- // directly and remove this passthrough method. |
- [self.webController reload]; |
-} |
- |
- (void)webWillReload { |
if ([parentTabModel_ tabUsageRecorder]) { |
[parentTabModel_ tabUsageRecorder]->RecordReload(self); |
@@ -1465,7 +1459,8 @@ - (void)countMainFrameLoad { |
- (void)applicationDidBecomeActive { |
if (requireReloadAfterBecomingActive_) { |
if (visible_) { |
- [self.webController reload]; |
+ self.navigationManager->Reload(web::ReloadType::NORMAL, |
+ false /* check_for_repost */); |
} else { |
[self.webController requirePageReload]; |
} |
@@ -2004,7 +1999,11 @@ - (void)renderProcessGoneForWebState:(web::WebState*)webState { |
base::scoped_nsobject<SadTabView> sadTabView( |
[[SadTabView alloc] initWithReloadHandler:^{ |
base::scoped_nsobject<Tab> strongSelf([weakSelf retain]); |
- [strongSelf reload]; |
+ |
+ // |check_for_repost| is true because this is called from SadTab and |
+ // explicitly initiated by the user. |
+ check_for_repost should be true[strongSelf navigationManager] |
+ ->Reload(web::ReloadType::NORMAL, true /* check_for_repost */); |
}]); |
base::scoped_nsobject<CRWContentView> contentView( |
[[CRWGenericContentView alloc] initWithView:sadTabView]); |