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

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

Issue 2642233004: Removed Form Resubmission callback from CRWWebDelegate. (Closed)
Patch Set: Added ShowRepostFormWarningWithNoDelegateMethod test 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 | « ios/web/public/web_state/web_state_delegate_bridge.h ('k') | ios/web/web_state/web_state_delegate.mm » ('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 d0950fbcb81ea84ea6b353172dec424f7d97ecc2..168ba8a0db8f5c54537a4829dd7070de0ce2cb23 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -5345,10 +5345,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 -
« no previous file with comments | « ios/web/public/web_state/web_state_delegate_bridge.h ('k') | ios/web/web_state/web_state_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698