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..402f28c66194d107a3a8e32e2eabc8a11133a6e3 100644 |
--- a/ios/chrome/browser/geolocation/test_location_manager.mm |
+++ b/ios/chrome/browser/geolocation/test_location_manager.mm |
@@ -6,6 +6,10 @@ |
#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; |
sdefresne
2016/11/25 10:13:24
nit: remove
|
base::scoped_nsobject<CLLocation> _currentLocation; |
@@ -43,7 +47,7 @@ |
} |
- (void)setCurrentLocation:(CLLocation*)currentLocation { |
- _currentLocation.reset([currentLocation retain]); |
+ _currentLocation.reset(currentLocation); |
} |
- (void)reset { |