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

Unified Diff: content/browser/power_usage_monitor_impl.cc

Issue 1417673009: base: SysInfo::Uptime() returns a TimeDelta (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update perf_provider_chromeos.cc (just updated in another CL) Created 5 years, 1 month 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 | « components/startup_metric_utils/browser/startup_metric_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_usage_monitor_impl.cc
diff --git a/content/browser/power_usage_monitor_impl.cc b/content/browser/power_usage_monitor_impl.cc
index fb294f3e0ca30e84a7cc1b599a2bb2a9f1a04cbd..adf1a8357b4edb5d9d4db46cc30f9ffc46e7980c 100644
--- a/content/browser/power_usage_monitor_impl.cc
+++ b/content/browser/power_usage_monitor_impl.cc
@@ -136,8 +136,7 @@ void PowerUsageMonitor::Start() {
// Delay initialization until the system has been up for a while.
// This is to mitigate the effect of increased power draw during system start.
- base::TimeDelta uptime =
- base::TimeDelta::FromMilliseconds(base::SysInfo::Uptime());
+ base::TimeDelta uptime = base::SysInfo::Uptime();
base::TimeDelta min_uptime = base::TimeDelta::FromMinutes(kMinUptimeMinutes);
if (uptime < min_uptime) {
base::TimeDelta delay = min_uptime - uptime;
« no previous file with comments | « components/startup_metric_utils/browser/startup_metric_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698