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

Side by Side Diff: ios/net/clients/crn_forwarding_network_client_factory.mm

Issue 2489533003: [ObjC ARC] Converts ios/net to ARC. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/net/clients/crn_forwarding_network_client_factory.h" 5 #import "ios/net/clients/crn_forwarding_network_client_factory.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #import "ios/net/clients/crn_forwarding_network_client.h" 9 #import "ios/net/clients/crn_forwarding_network_client.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
11 @implementation CRNForwardingNetworkClientFactory 15 @implementation CRNForwardingNetworkClientFactory
12 16
13 // Init just sanity checks that the factory class has sane ordering rules. 17 // Init just sanity checks that the factory class has sane ordering rules.
14 - (instancetype)init { 18 - (instancetype)init {
15 if ((self = [super init])) { 19 if ((self = [super init])) {
16 // Type checks. 20 // Type checks.
17 DCHECK(![[self class] mustApplyBefore] || 21 DCHECK(![[self class] mustApplyBefore] ||
18 [[[self class] mustApplyBefore] 22 [[[self class] mustApplyBefore]
19 isSubclassOfClass:[CRNForwardingNetworkClientFactory class]]); 23 isSubclassOfClass:[CRNForwardingNetworkClientFactory class]]);
20 DCHECK(![[self class] mustApplyAfter] || 24 DCHECK(![[self class] mustApplyAfter] ||
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 result = NSOrderedAscending; 97 result = NSOrderedAscending;
94 } 98 }
95 if ([[self class] mustApplyAfter] == [factory class] || 99 if ([[self class] mustApplyAfter] == [factory class] ||
96 [[factory class] mustApplyBefore] == [self class]) { 100 [[factory class] mustApplyBefore] == [self class]) {
97 result = NSOrderedDescending; 101 result = NSOrderedDescending;
98 } 102 }
99 return result; 103 return result;
100 } 104 }
101 105
102 @end 106 @end
OLDNEW
« no previous file with comments | « ios/net/clients/crn_forwarding_network_client.mm ('k') | ios/net/clients/crn_simple_network_client_factory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698