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

Unified Diff: content/browser/geofencing/geofencing_service.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/geofencing/geofencing_service.cc
diff --git a/content/browser/geofencing/geofencing_service.cc b/content/browser/geofencing/geofencing_service.cc
index d3dc2594fb6327ad2ec441ec5206b5155674fe32..1edb605297cfb74896c3a65037104b1353e4e5b2 100644
--- a/content/browser/geofencing/geofencing_service.cc
+++ b/content/browser/geofencing/geofencing_service.cc
@@ -27,11 +27,11 @@ void RunSoon(const base::Closure& callback) {
struct GeofencingServiceImpl::Registration {
Registration();
Registration(const blink::WebCircularGeofencingRegion& region,
- int64 geofencing_registration_id,
+ int64_t geofencing_registration_id,
GeofencingRegistrationDelegate* delegate);
blink::WebCircularGeofencingRegion region;
- int64 geofencing_registration_id;
+ int64_t geofencing_registration_id;
GeofencingRegistrationDelegate* delegate;
enum RegistrationState {
@@ -56,13 +56,12 @@ GeofencingServiceImpl::Registration::Registration()
GeofencingServiceImpl::Registration::Registration(
const blink::WebCircularGeofencingRegion& region,
- int64 geofencing_registration_id,
+ int64_t geofencing_registration_id,
GeofencingRegistrationDelegate* delegate)
: region(region),
geofencing_registration_id(geofencing_registration_id),
delegate(delegate),
- state(STATE_REGISTERING) {
-}
+ state(STATE_REGISTERING) {}
GeofencingServiceImpl::GeofencingServiceImpl() : next_registration_id_(0) {
}
@@ -80,12 +79,12 @@ bool GeofencingServiceImpl::IsServiceAvailable() {
return EnsureProvider();
}
-int64 GeofencingServiceImpl::RegisterRegion(
+int64_t GeofencingServiceImpl::RegisterRegion(
const blink::WebCircularGeofencingRegion& region,
GeofencingRegistrationDelegate* delegate) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- int64 geofencing_registration_id = GetNextId();
+ int64_t geofencing_registration_id = GetNextId();
registrations_[geofencing_registration_id] =
Registration(region, geofencing_registration_id, delegate);
@@ -107,7 +106,8 @@ int64 GeofencingServiceImpl::RegisterRegion(
return geofencing_registration_id;
}
-void GeofencingServiceImpl::UnregisterRegion(int64 geofencing_registration_id) {
+void GeofencingServiceImpl::UnregisterRegion(
+ int64_t geofencing_registration_id) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
RegistrationsMap::iterator registration_iterator =
@@ -157,14 +157,14 @@ bool GeofencingServiceImpl::EnsureProvider() {
return true;
}
-int64 GeofencingServiceImpl::GetNextId() {
+int64_t GeofencingServiceImpl::GetNextId() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
return next_registration_id_++;
}
void GeofencingServiceImpl::NotifyRegistrationFinished(
- int64 geofencing_registration_id,
+ int64_t geofencing_registration_id,
GeofencingStatus status) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
« no previous file with comments | « content/browser/geofencing/geofencing_service.h ('k') | content/browser/geofencing/geofencing_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698