Index: ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm |
diff --git a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm |
index c195f46f55e75b3076259809f08b4069af0f5230..c3a664210eb1d7610c187ce8186e1c019b19cc32 100644 |
--- a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm |
+++ b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm |
@@ -14,6 +14,10 @@ |
#import "ios/chrome/browser/geolocation/location_manager.h" |
#import "ios/chrome/browser/pref_names.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
@interface OmniboxGeolocationLocalState () { |
base::scoped_nsobject<LocationManager> locationManager_; |
} |
@@ -39,7 +43,7 @@ |
DCHECK(locationManager); |
self = [super init]; |
if (self) { |
- locationManager_.reset([locationManager retain]); |
+ locationManager_.reset(locationManager); |
} |
return self; |
} |