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

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

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/first_run/first_run.h ('k') | ios/chrome/browser/infobars/infobar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1aa9ed7a6c3b27e4a4911801678b50ba48bbbaf9..ec80ee26cb979a2fa837e021279aa0dde33d3774 100644
--- a/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
+++ b/ios/chrome/browser/geolocation/CLLocation+XGeoHeader.mm
@@ -4,7 +4,8 @@
#import "ios/chrome/browser/geolocation/CLLocation+XGeoHeader.h"
-#include "base/basictypes.h"
+#include <stdint.h>
+
#import "third_party/google_toolbox_for_mac/src/Foundation/GTMStringEncoding.h"
NSString* const kGMOLocationDescriptorFormat =
@@ -33,11 +34,11 @@ NSString* const kGMOLocationDescriptorFormat =
// Returns the timestamp of this location in microseconds since the UNIX epoch.
// Returns 0 if the timestamp is unavailable or invalid.
-- (int64)cr_timestampInMicroseconds {
+- (int64_t)cr_timestampInMicroseconds {
NSTimeInterval seconds = [self.timestamp timeIntervalSince1970];
if (seconds > 0) {
- const int64 kSecondsToMicroseconds = 1000000;
- return (int64)(seconds * kSecondsToMicroseconds);
+ const int64_t kSecondsToMicroseconds = 1000000;
+ return (int64_t)(seconds * kSecondsToMicroseconds);
}
return 0;
}
« no previous file with comments | « ios/chrome/browser/first_run/first_run.h ('k') | ios/chrome/browser/infobars/infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698