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

Unified Diff: chromeos/network/geolocation_handler.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « chromeos/network/geolocation_handler.h ('k') | chromeos/network/geolocation_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/geolocation_handler.cc
diff --git a/chromeos/network/geolocation_handler.cc b/chromeos/network/geolocation_handler.cc
index d4adfb8998b549ba63f859f9af9c2c072f8dbbf6..0041ccf5c79c5b2665a88665ac72ae35fe98a558 100644
--- a/chromeos/network/geolocation_handler.cc
+++ b/chromeos/network/geolocation_handler.cc
@@ -4,6 +4,9 @@
#include "chromeos/network/geolocation_handler.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
@@ -35,7 +38,8 @@ void GeolocationHandler::Init() {
}
bool GeolocationHandler::GetWifiAccessPoints(
- WifiAccessPointVector* access_points, int64* age_ms) {
+ WifiAccessPointVector* access_points,
+ int64_t* age_ms) {
if (!wifi_enabled_)
return false;
// Always request updated access points.
@@ -127,7 +131,7 @@ void GeolocationHandler::GeolocationCallback(
entry->GetString(shill::kGeoMacAddressProperty, &wap.mac_address);
std::string age_str;
if (entry->GetString(shill::kGeoAgeProperty, &age_str)) {
- int64 age_ms;
+ int64_t age_ms;
if (base::StringToInt64(age_str, &age_ms)) {
wap.timestamp =
base::Time::Now() - base::TimeDelta::FromMilliseconds(age_ms);
« no previous file with comments | « chromeos/network/geolocation_handler.h ('k') | chromeos/network/geolocation_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698