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

Unified Diff: ios/chrome/browser/geolocation/test_location_manager.mm

Issue 2510133003: [ObjC ARC] Converts ios/chrome/browser/geolocation:test_support to ARC.Automatically generated AR… (Closed)
Patch Set: git cl hel[ Created 4 years 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 | « ios/chrome/browser/geolocation/test_location_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/geolocation/test_location_manager.mm
diff --git a/ios/chrome/browser/geolocation/test_location_manager.mm b/ios/chrome/browser/geolocation/test_location_manager.mm
index eb6633eaf84d124313a21a4fa8bbb16f557887da..8de6fff0f0bd8c3ad4fe514f54ba804655788a23 100644
--- a/ios/chrome/browser/geolocation/test_location_manager.mm
+++ b/ios/chrome/browser/geolocation/test_location_manager.mm
@@ -4,24 +4,20 @@
#import "ios/chrome/browser/geolocation/test_location_manager.h"
-#include "base/mac/scoped_nsobject.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
-@interface TestLocationManager () {
- CLAuthorizationStatus _authorizationStatus;
- base::scoped_nsobject<CLLocation> _currentLocation;
- BOOL _locationServicesEnabled;
- BOOL _started;
- BOOL _stopped;
-}
+@interface TestLocationManager ()
@end
@implementation TestLocationManager
-
@synthesize authorizationStatus = _authorizationStatus;
@synthesize locationServicesEnabled = _locationServicesEnabled;
@synthesize started = _started;
@synthesize stopped = _stopped;
+@synthesize currentLocation = _currentLocation;
- (id)init {
self = [super init];
@@ -38,17 +34,9 @@
}
}
-- (CLLocation*)currentLocation {
- return _currentLocation;
-}
-
-- (void)setCurrentLocation:(CLLocation*)currentLocation {
- _currentLocation.reset([currentLocation retain]);
-}
-
- (void)reset {
_authorizationStatus = kCLAuthorizationStatusNotDetermined;
- _currentLocation.reset();
+ _currentLocation = nil;
_locationServicesEnabled = YES;
_started = NO;
_stopped = NO;
« no previous file with comments | « ios/chrome/browser/geolocation/test_location_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698