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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.h

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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
Index: chrome/browser/chromeos/policy/device_status_collector.h
diff --git a/chrome/browser/chromeos/policy/device_status_collector.h b/chrome/browser/chromeos/policy/device_status_collector.h
index c0c97d80435d05229003979938415eb405059fdb..ac45e11aba90b14bc6cdcec225b219855a855373 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.h
+++ b/chrome/browser/chromeos/policy/device_status_collector.h
@@ -5,14 +5,16 @@
#ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_
+#include <stdint.h>
+
#include <deque>
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/callback_list.h"
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
@@ -148,9 +150,9 @@ class DeviceStatusCollector {
// Trims the store activity periods to only retain data within the
// [|min_day_key|, |max_day_key|). The record for |min_day_key| will be
// adjusted by subtracting |min_day_trim_duration|.
- void TrimStoredActivityPeriods(int64 min_day_key,
+ void TrimStoredActivityPeriods(int64_t min_day_key,
int min_day_trim_duration,
- int64 max_day_key);
+ int64_t max_day_key);
void AddActivePeriod(base::Time start, base::Time end);
@@ -209,7 +211,7 @@ class DeviceStatusCollector {
// GetDeviceStatus(), and the duration for it. This is used to trim the
// stored data in OnSubmittedSuccessfully(). Trimming is delayed so
// unsuccessful uploads don't result in dropped data.
- int64 last_reported_day_;
+ int64_t last_reported_day_;
int duration_for_last_reported_day_;
// Whether a geolocation update is currently in progress.
@@ -236,7 +238,7 @@ class DeviceStatusCollector {
// Amount of free RAM (measures raw memory used by processes, not internal
// memory waiting to be reclaimed by GC).
- int64 bytes_of_ram_free;
+ int64_t bytes_of_ram_free;
};
// Samples of resource usage (contains multiple samples taken
@@ -257,8 +259,8 @@ class DeviceStatusCollector {
chromeos::CrosSettings* cros_settings_;
// The most recent CPU readings.
- uint64 last_cpu_active_;
- uint64 last_cpu_idle_;
+ uint64_t last_cpu_active_;
+ uint64_t last_cpu_idle_;
// TODO(bartfab): Remove this once crbug.com/125931 is addressed and a proper
// way to mock geolocation exists.

Powered by Google App Engine
This is Rietveld 408576698