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

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

Issue 2528003002: [ObjC ARC] Converts ios/chrome/browser/geolocation:geolocation to ARC.Automatically generated 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 side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698