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

Unified Diff: ios/chrome/browser/geolocation/CLLocation+XGeoHeader.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
Index: ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
diff --git a/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm b/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
index f846c4757063311e58d6df1501f6cfc7514bb6a7..e7a42994b4b8b0f1074f3487bfca9b28a22a10c1 100644
--- a/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
+++ b/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
@@ -8,6 +8,10 @@
#import "third_party/google_toolbox_for_mac/src/Foundation/GTMStringEncoding.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
NSString* const kGMOLocationDescriptorFormat =
@"role: CURRENT_LOCATION\n"
@"producer: DEVICE_LOCATION\n"
@@ -28,9 +32,8 @@ NSString* const kGMOLocationDescriptorFormat =
error:nullptr];
if (base64) {
return base64;
- } else {
- return @"";
}
+ return @"";
}
// Returns the timestamp of this location in microseconds since the UNIX epoch.
« no previous file with comments | « ios/chrome/browser/geolocation/CLLocation+OmniboxGeolocation.mm ('k') | ios/chrome/browser/geolocation/location_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698