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

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

Issue 2642233004: Removed Form Resubmission callback from CRWWebDelegate. (Closed)
Patch Set: Addressed review comments 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
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 c035b4befecc87b149da90b5183c6d37af97a99b..61179af254dc2d0e63aef4625890518b690cc88c 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -5347,10 +5347,13 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
// If the request is form submission or resubmission, then prompt the
// user before proceeding.
DCHECK(isFormPOSTResubmission);
- [self.delegate webController:self
- onFormResubmissionForRequest:nil
- continueBlock:webViewNavigationBlock
- cancelBlock:defaultNavigationBlock];
+ _webStateImpl->ShowRepostFormWarningDialog(
+ base::BindBlock(^(bool shouldContinue) {
+ if (shouldContinue)
+ webViewNavigationBlock();
+ else
+ defaultNavigationBlock();
+ }));
}
#pragma mark -

Powered by Google App Engine
This is Rietveld 408576698