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

Unified Diff: chrome/browser/net/referrer.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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 | « chrome/browser/net/referrer.h ('k') | chrome/browser/net/request_source_bandwidth_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/referrer.cc
diff --git a/chrome/browser/net/referrer.cc b/chrome/browser/net/referrer.cc
index 67ac6bfba5a1c83b76139d2086465de961b73912..c85ea8c053f0abbe42008d4c077c4092b6040ae2 100644
--- a/chrome/browser/net/referrer.cc
+++ b/chrome/browser/net/referrer.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/net/referrer.h"
#include <limits.h>
+#include <stddef.h>
#include "base/compiler_specific.h"
#include "base/logging.h"
@@ -83,11 +84,11 @@ void Referrer::DeleteLeastUseful() {
GURL least_useful_url;
double lowest_rate_seen = 0.0;
// We use longs for durations because we will use multiplication on them.
- int64 least_useful_lifetime = 0; // Duration in milliseconds.
+ int64_t least_useful_lifetime = 0; // Duration in milliseconds.
const base::Time kNow(base::Time::Now()); // Avoid multiple calls.
for (SubresourceMap::iterator it = begin(); it != end(); ++it) {
- int64 lifetime = (kNow - it->second.birth_time()).InMilliseconds();
+ int64_t lifetime = (kNow - it->second.birth_time()).InMilliseconds();
double rate = it->second.subresource_use_rate();
if (least_useful_url.has_host()) {
if (rate > lowest_rate_seen)
« no previous file with comments | « chrome/browser/net/referrer.h ('k') | chrome/browser/net/request_source_bandwidth_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698