Add time synchronization to SystemClockClient

Desktop / Chromium - Daria Yakovleva [google.com] - 11 October 2017 07:28 EDT

Add time update observer to DeviceOffHoursController. Add dbus call to check local time synchronization with the network time. Add check time synchronization to DeviceOffHoursController. SystemClockLastSyncInfo is got from here: https://chromium.googlesource.com/chromiumos/platform2/+/ed23f71c21cbe9bb01ee1418592b89ebbd55c208/login_manager/session_manager_impl.cc#963

Bug: 739713 Change-Id: I23fccae4f597993929e5d78eb3749212973e779c Reviewed-on: https://chromium-review.googlesource.com/660699

0bf2d77 Add time synchronization to SystemClockClient
.../chromeos/policy/device_off_hours_controller.cc | 47 ++++++++++++++++++++--
.../chromeos/policy/device_off_hours_controller.h | 32 ++++++++++++---
.../policy/device_off_hours_controller_unittest.cc | 40 ++++++++++++++++++
.../chromeos/settings/device_settings_service.cc | 5 +++
.../chromeos/settings/device_settings_service.h | 3 ++
chromeos/dbus/dbus_thread_manager.cc | 6 +++
chromeos/dbus/dbus_thread_manager.h | 1 +
chromeos/dbus/fake_system_clock_client.cc | 25 ++++++++++--
chromeos/dbus/fake_system_clock_client.h | 16 ++++++++
chromeos/dbus/system_clock_client.cc | 39 +++++++++++++++++-
chromeos/dbus/system_clock_client.h | 11 +++++
11 files changed, 212 insertions(+), 13 deletions(-)

Upstream: git.chromium.org


  • Share