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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2672673002: Removed investigation CHECK from didCommitNavigation. (Closed)
Patch Set: Removed unused method Created 3 years, 11 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 | ios/web/web_state/ui/crw_wk_navigation_states.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7222d3dfc1cb51ceeef36b4df87f125ea28076dd..9b525b191c81c5bcb699d1d5d2fb23d3ae3e976a 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4861,16 +4861,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)webView:(WKWebView*)webView
didCommitNavigation:(WKNavigation*)navigation {
- // This method will crash if |currentSessionEntry| is null. If this check is
- // hit it means that |didStartProvisionalNavigation| was called as expected
- // but it did not call |registerLoadRequest|. TODO(crbug.com/676721): remove
- // this CHECK once there is at least one crash on this line (which means that
- // |didStartProvisionalNavigation| did not call |registerLoadRequest| and it
- // should be fixed.
- CHECK([self currentSessionEntry] || !navigation ||
- [_navigationStates stateForNavigation:navigation] ==
- web::WKNavigationState::STARTED);
-
[_navigationStates setState:web::WKNavigationState::COMMITTED
forNavigation:navigation];
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_wk_navigation_states.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698