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

Unified Diff: ios/web/public/test/crw_mock_web_state_delegate.mm

Issue 2737353006: Replaced webPageOrderedClose with WebStateDelegate API. (Closed)
Patch Set: Addressed review comments 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/public/test/crw_mock_web_state_delegate.mm
diff --git a/ios/web/public/test/crw_mock_web_state_delegate.mm b/ios/web/public/test/crw_mock_web_state_delegate.mm
index 06cbb759f00186988fcd01241fa84f4e0c181f86..fda453cec2b682b52c82cb78a512e57fc078041a 100644
--- a/ios/web/public/test/crw_mock_web_state_delegate.mm
+++ b/ios/web/public/test/crw_mock_web_state_delegate.mm
@@ -18,6 +18,7 @@
@synthesize webState = _webState;
@synthesize webStateCreationRequested = _webStateCreationRequested;
+@synthesize webStateClosingRequested = _webStateClosingRequested;
@synthesize repostFormWarningRequested = _repostFormWarningRequested;
@synthesize authenticationRequested = _authenticationRequested;
@@ -30,6 +31,11 @@
return nil;
}
+- (void)closeWebState:(web::WebState*)webState {
+ _webState = webState;
+ _webStateClosingRequested = YES;
+}
+
- (web::WebState*)webState:(web::WebState*)webState
openURLWithParams:(const web::WebState::OpenURLParams&)params {
_webState = webState;
« no previous file with comments | « ios/web/public/test/crw_mock_web_state_delegate.h ('k') | ios/web/public/test/fakes/test_web_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698