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

Unified Diff: ios/chrome/browser/tabs/tab.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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/BUILD.gn » ('j') | ios/web/public/web_state/web_state_delegate.h » ('J')
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 eb0ce209c64775fd3db4710a614d68bedf45a80f..31b0fd18665558a2c21967c344acd8a98206d7fb 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1674,26 +1674,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') | ios/web/public/web_state/web_state_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698