Revert "Reland "[ios] Call LoadIfNecessary even when displaying the NTP.""
This reverts commit f7a1e3d83c5e10e5f61fdce4cd3715b6768ecf47.
Reason for revert: Still causing failures.
Original change's description:
> Reland "[ios] Call LoadIfNecessary even when displaying the NTP."
>
> This reverts commit 2a974e5ae5d7df2535b2923999f48a075d5394a8.
>
> Reason for revert: Speculative re-land of this CL, as it seems
> unlikely that this CL caused infobar to fail.
>
TBR=gab@chromium.org,justincohen@chromium.org,eugenebut@chromium.org,danyao@chromium.org
Change-Id: I61c4fe19fe23aa553a2689380a6e07b776a858ca
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/1429259
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625044}
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 285dcdda..0c76470 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -2366,9 +2366,6 @@
UIViewController* viewController =
_ntpCoordinatorsForWebStates[tab.webState].viewController;
viewController.view.frame = [self ntpFrameForWebState:tab.webState];
- // TODO(crbug.com/873729): For a newly created WebState, the session will
- // not be restored until LoadIfNecessary call. Remove when fixed.
- tab.webState->GetNavigationManager()->LoadIfNecessary();
self.browserContainerViewController.contentViewController =
viewController;
} else {