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

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

Issue 1171203004: Correct iOS build for latest Xcode beta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 6 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/web_state/ui/crw_wk_web_view_crash_detector.mm
diff --git a/ios/web/web_state/ui/crw_wk_web_view_crash_detector.mm b/ios/web/web_state/ui/crw_wk_web_view_crash_detector.mm
index c6f015e5bdf880711cc39fe9e98cfd0b90d775dd..2dd10ab69cdab64bb3ea16f2547c5285cdd43688 100644
--- a/ios/web/web_state/ui/crw_wk_web_view_crash_detector.mm
+++ b/ios/web/web_state/ui/crw_wk_web_view_crash_detector.mm
@@ -45,11 +45,6 @@ BOOL IsWebViewTerminationError(NSError* error) {
base::mac::ScopedBlock<ProceduralBlock> _crashHandler;
}
-- (instancetype)init {
- NOTREACHED();
- return nil;
-}
-
- (instancetype)initWithWebView:(WKWebView*)webView
crashHandler:(ProceduralBlock)handler {
DCHECK(webView);
@@ -71,6 +66,11 @@ BOOL IsWebViewTerminationError(NSError* error) {
return self;
}
+- (instancetype)init {
+ NOTREACHED();
+ return nil;
+}
+
- (void)dealloc {
[_webView removeObserver:self forKeyPath:kCrashIndicatorKeyPath];
[super dealloc];

Powered by Google App Engine
This is Rietveld 408576698