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

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

Issue 1008333002: Move time constants to base::Time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Time -> base::Time Created 5 years, 9 months 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.cc
diff --git a/chrome/browser/chromeos/policy/device_status_collector.cc b/chrome/browser/chromeos/policy/device_status_collector.cc
index fcba06b16120eba706dd20973e4dc4e1be4f51a7..5cfd1244b775d409748683ca28d8948ec9c5cfb3 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.cc
+++ b/chrome/browser/chromeos/policy/device_status_collector.cc
@@ -70,8 +70,6 @@ const unsigned int kGeolocationPollIntervalSeconds = 30 * 60;
// How often, in seconds, to sample the hardware state.
static const unsigned int kHardwareStatusSampleIntervalSeconds = 120;
-const int64 kMillisecondsPerDay = Time::kMicrosecondsPerDay / 1000;
-
// Keys for the geolocation status dictionary in local state.
const char kLatitude[] = "latitude";
const char kLongitude[] = "longitude";
@@ -518,7 +516,7 @@ void DeviceStatusCollector::GetActivityTimes(
it.value().GetAsInteger(&activity_milliseconds)) {
// This is correct even when there are leap seconds, because when a leap
// second occurs, two consecutive seconds have the same timestamp.
- int64 end_timestamp = start_timestamp + kMillisecondsPerDay;
+ int64 end_timestamp = start_timestamp + Time::kMillisecondsPerDay;
em::ActiveTimePeriod* active_period = request->add_active_period();
em::TimePeriod* period = active_period->mutable_time_period();

Powered by Google App Engine
This is Rietveld 408576698