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

Unified Diff: ios/chrome/browser/tabs/tab.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 | « no previous file | ios/chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab.mm
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
index f49bced654e2172786d3f35294ecf5c7f0bfc43b..a6a7e571430a56a85b15650cc43a70831aa6c729 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1655,26 +1655,6 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
return tab.webController;
}
-- (void)webController:(CRWWebController*)webController
- onFormResubmissionForRequest:(NSURLRequest*)request
- continueBlock:(ProceduralBlock)continueBlock
- cancelBlock:(ProceduralBlock)cancelBlock {
- // Display the action sheet with the arrow pointing at the top center of the
- // web contents.
- CGPoint dialogLocation =
- CGPointMake(CGRectGetMidX(webController.view.frame),
- CGRectGetMinY(webController.view.frame) +
- [self.tabHeadersDelegate headerHeightForTab:self]);
- auto helper = FormResubmissionTabHelper::FromWebState(webController.webState);
- helper->PresentFormResubmissionDialog(dialogLocation,
- base::BindBlock(^(bool shouldContinue) {
- if (shouldContinue)
- continueBlock();
- else
- cancelBlock();
- }));
-}
-
// The web page wants to close its own window.
- (void)webPageOrderedClose {
// Only allow a web page to close itself if it was opened by DOM, or if there
« no previous file with comments | « no previous file | ios/chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698