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

Unified Diff: ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm

Issue 2528003002: [ObjC ARC] Converts ios/chrome/browser/geolocation:geolocation to ARC.Automatically generated ARC… (Closed)
Patch Set: comments, cleanup 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
« no previous file with comments | « ios/chrome/browser/geolocation/BUILD.gn ('k') | ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm
diff --git a/ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm b/ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm
index 1449373d84271dae2de0ee428eabc032cd0c69bc..8a25eb4927aa0eed6f45d800a741af24eeb24bcf 100644
--- a/ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm
+++ b/ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm
@@ -6,7 +6,9 @@
#import <objc/runtime.h>
-#include "base/mac/scoped_nsobject.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
namespace {
@@ -32,9 +34,8 @@ const NSTimeInterval kLocationShouldRefreshAge = 5.0 * 60.0; // 5 minutes
}
- (void)cr_setAcquisitionInterval:(NSTimeInterval)interval {
- base::scoped_nsobject<NSNumber> boxedInterval(
- [[NSNumber alloc] initWithDouble:interval]);
- objc_setAssociatedObject(self, &g_acquisitionIntervalKey, boxedInterval.get(),
+ NSNumber* boxedInterval = [[NSNumber alloc] initWithDouble:interval];
+ objc_setAssociatedObject(self, &g_acquisitionIntervalKey, boxedInterval,
OBJC_ASSOCIATION_RETAIN);
}
« no previous file with comments | « ios/chrome/browser/geolocation/BUILD.gn ('k') | ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698