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

Unified Diff: chrome/browser/net/request_source_bandwidth_histograms.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.cc ('k') | chrome/browser/net/resource_prefetch_predictor_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/request_source_bandwidth_histograms.cc
diff --git a/chrome/browser/net/request_source_bandwidth_histograms.cc b/chrome/browser/net/request_source_bandwidth_histograms.cc
index a9a7b470da8cabbf6b9230c4a022fb818b201ff2..bdcdc82c4dce8963cf1301fdac439d27b2ff7464 100644
--- a/chrome/browser/net/request_source_bandwidth_histograms.cc
+++ b/chrome/browser/net/request_source_bandwidth_histograms.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/net/request_source_bandwidth_histograms.h"
+#include <stdint.h>
+
#include "base/metrics/histogram_macros.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/common/process_type.h"
@@ -40,8 +42,8 @@ Bucket GetBucketForRequest(const net::URLRequest* request) {
UMA_HISTOGRAM_CUSTOM_COUNTS("Net.ResponseSizeByProcess." bucket, sample, \
1, 4 * 1024 * 1024, 100)
-void LogRequest(Bucket bucket, int64 bytes) {
- int64 kilobytes = bytes / 1024;
+void LogRequest(Bucket bucket, int64_t bytes) {
+ int64_t kilobytes = bytes / 1024;
switch (bucket) {
case BUCKET_UNKNOWN:
UMA_HISTOGRAM_RESPONSE_KB("Unknown", kilobytes);
« no previous file with comments | « chrome/browser/net/referrer.cc ('k') | chrome/browser/net/resource_prefetch_predictor_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698