| Index: ios/web/web_state/ui/crw_web_controller.mm
|
| diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
|
| index 56ac889fb64f3775f2c2c0f804fb099e950d14b5..2058198c9654b9382a5035524b06cbca2354eaed 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -994,7 +994,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| if (self) {
|
| _webStateImpl = webState;
|
| DCHECK(_webStateImpl);
|
| - _webStateImpl->InitializeRequestTracker(self);
|
| // Load phase when no WebView present is 'loaded' because this represents
|
| // the idle state.
|
| _loadPhase = web::PAGE_LOADED;
|
| @@ -1226,7 +1225,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // (since this may be called from within the handling loop) to prevent any
|
| // asynchronous JavaScript invocation handling from continuing.
|
| [NSObject cancelPreviousPerformRequestsWithTarget:self];
|
| - _webStateImpl->CloseRequestTracker();
|
| }
|
|
|
| - (void)dismissModals {
|
| @@ -2157,10 +2155,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // and the delegate is called.
|
| _loadPhase = web::PAGE_LOADED;
|
| if (!_isHalted) {
|
| - // RequestTracker expects StartPageLoad to be followed by
|
| - // FinishPageLoad, passing the exact same URL.
|
| - self.webStateImpl->GetRequestTracker()->FinishPageLoad(
|
| - _URLOnStartLoading, false);
|
| _webStateImpl->SetIsLoading(false);
|
| }
|
| [_delegate webLoadCancelled:_URLOnStartLoading];
|
| @@ -2272,8 +2266,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
|
|
| - (void)didFinishWithURL:(const GURL&)currentURL loadSuccess:(BOOL)loadSuccess {
|
| DCHECK(_loadPhase == web::PAGE_LOADED);
|
| - _webStateImpl->GetRequestTracker()->FinishPageLoad(currentURL, loadSuccess);
|
| -
|
| // Rather than creating a new WKBackForwardListItem when loading WebUI pages,
|
| // WKWebView will cache the WebUI HTML in the previous WKBackForwardListItem
|
| // since it's loaded via |-loadHTML:forURL:| instead of an NSURLRequest. As a
|
| @@ -3157,8 +3149,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| _pageHasZoomed = NO;
|
|
|
| [[self sessionController] commitPendingEntry];
|
| - _webStateImpl->GetRequestTracker()->StartPageLoad(
|
| - url, [[self sessionController] currentEntry]);
|
| [_delegate webDidStartLoadingURL:url shouldUpdateHistory:updateHistory];
|
| }
|
|
|
| @@ -4289,7 +4279,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| }
|
|
|
| - (void)didUpdateHistoryStateWithPageURL:(const GURL&)url {
|
| - _webStateImpl->GetRequestTracker()->HistoryStateChange(url);
|
| [_delegate webDidUpdateHistoryStateWithPageURL:url];
|
| }
|
|
|
|
|