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

Unified Diff: ios/web/weak_nsobject_counter.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/weak_nsobject_counter.mm
diff --git a/ios/web/weak_nsobject_counter.mm b/ios/web/weak_nsobject_counter.mm
index bd14b7b3f0180ae2cd6d7d7dd95883617d343be8..edcf01ae1ac7f34c66b8e49371449a1f499a38c9 100644
--- a/ios/web/weak_nsobject_counter.mm
+++ b/ios/web/weak_nsobject_counter.mm
@@ -29,11 +29,6 @@ const char kObserverAssociatedObjectKey = 'h';
linked_ptr<NSUInteger> _counter;
}
-- (instancetype)init {
- NOTREACHED();
- return nil;
-}
-
- (instancetype)initWithSharedCounter:(const linked_ptr<NSUInteger>&)counter
objectToBeObserved:(id)object {
self = [super init];
@@ -48,6 +43,11 @@ const char kObserverAssociatedObjectKey = 'h';
return self;
}
+- (instancetype)init {
+ NOTREACHED();
+ return nil;
+}
+
- (void)dealloc {
DCHECK(_counter.get());
(*_counter)--;
« no previous file with comments | « ios/web/test/crw_fake_web_controller_observer.mm ('k') | ios/web/web_state/js/crw_js_early_script_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698