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

Unified Diff: ios/web/test/wk_web_view_crash_utils.mm

Issue 2436903002: Removed uses of IsRunningOnIOS9OrLater in crw_web_ or wk_web_view_ (Closed)
Patch Set: Created 4 years, 2 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/web/web_state/crw_web_view_proxy_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/wk_web_view_crash_utils.mm
diff --git a/ios/web/test/wk_web_view_crash_utils.mm b/ios/web/test/wk_web_view_crash_utils.mm
index c015c318143d677be6cd602441b27f27047bd179..41e38f568cb474b6972735f644ee30306d3f48c0 100644
--- a/ios/web/test/wk_web_view_crash_utils.mm
+++ b/ios/web/test/wk_web_view_crash_utils.mm
@@ -7,7 +7,6 @@
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
-#include "base/ios/ios_util.h"
#include "base/logging.h"
#import "base/mac/scoped_nsobject.h"
#include "ios/web/public/test/test_browser_state.h"
@@ -37,11 +36,9 @@ WKWebView* CreateMockWKWebViewWithStubbedJSEvalFunction(
namespace web {
void SimulateWKWebViewCrash(WKWebView* webView) {
- if (base::ios::IsRunningOnIOS9OrLater()) {
- SEL selector = @selector(webViewWebContentProcessDidTerminate:);
- if ([webView.navigationDelegate respondsToSelector:selector]) {
- [webView.navigationDelegate performSelector:selector withObject:webView];
- }
+ SEL selector = @selector(webViewWebContentProcessDidTerminate:);
+ if ([webView.navigationDelegate respondsToSelector:selector]) {
+ [webView.navigationDelegate performSelector:selector withObject:webView];
}
[webView performSelector:@selector(_processDidExit)];
}
« no previous file with comments | « no previous file | ios/web/web_state/crw_web_view_proxy_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698