| 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;
|
|
|