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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.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 | « chrome/browser/caps/generate_state_json.cc ('k') | chrome/browser/metrics/perf/perf_provider_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
index 587b1b6df6803b322f1e6599c987171600fa19b5..44b74b66c81004eaedb24de8eb7497ba6f4802b7 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
@@ -55,8 +55,7 @@ void DeviceCommandRebootJob::RunImpl(
const CallbackWithResult& failed_callback) {
// Determines the time delta between the command having been issued and the
// boot time of the system.
- const base::TimeDelta uptime =
- base::TimeDelta::FromMilliseconds(base::SysInfo::Uptime());
+ const base::TimeDelta uptime = base::SysInfo::Uptime();
const base::TimeTicks boot_time = base::TimeTicks::Now() - uptime;
const base::TimeDelta delta = boot_time - issued_time();
// If the reboot command was issued before the system booted, we inform the
« no previous file with comments | « chrome/browser/caps/generate_state_json.cc ('k') | chrome/browser/metrics/perf/perf_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698