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

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

Issue 2737353006: Replaced webPageOrderedClose with WebStateDelegate API. (Closed)
Patch Set: Created 3 years, 9 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
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 0758389f047aa29c97410f074cf820f928641919..6b22dcdb0fa71d46eab5b2e861235a3268a59160 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -3146,7 +3146,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
// load operation (e.g. notifying all observers) and record the URL so
// that errors reported following the 'NO' reply can be safely ignored.
if ([self shouldClosePageOnNativeApplicationLoad])
- [_delegate webPageOrderedClose];
+ _webStateImpl->CloseWebState();
[self stopLoading];
[_openedApplicationURL addObject:request.URL];
return NO;
@@ -3197,7 +3197,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
// safely ignored.
[_openedApplicationURL addObject:request.URL];
if ([self shouldClosePageOnNativeApplicationLoad])
- [_delegate webPageOrderedClose];
+ _webStateImpl->CloseWebState();
}
return NO;
}
@@ -4365,7 +4365,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)webViewDidClose:(WKWebView*)webView {
if (self.sessionController.openedByDOM) {
- [self.delegate webPageOrderedClose];
+ _webStateImpl->CloseWebState();
}
}

Powered by Google App Engine
This is Rietveld 408576698