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

Issue 2314813002: Refactored DeviceStatusCollector to enable truely asynchronous status queries (Closed)

Created:
4 years, 3 months ago by ljusten (tachyonic)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tnagel+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, bartfab (slow), phweiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactored DeviceStatusCollector to enable truely asynchronous status queries Combined GetDeviceStatusAsync and GetDeviceSessionStatusAsync into one function. They are always called together and combining them makes StatusGetter in status_uploader.h/cc unnecessary. Added helper class to keep state for asynchronous status queries. Disk volume info and CPU temp info are now collected asynchronously when status is requested. Before, the data was sampled regularly and only the last sample was used. Removed unused geo location reporting code. Deprecated device_location field in protobuf. Changed thread-checking to use ThreadChecker class. BUG=639372 Committed: https://crrev.com/6e4082c0fc2425bb6f040e29baae4362246ef93d Cr-Commit-Position: refs/heads/master@{#421475}

Patch Set 1 #

Patch Set 2 : Deprecated device_location protobuf field #

Patch Set 3 : Rebase #

Total comments: 13

Patch Set 4 : Rebase and improved comments based on feedback #

Patch Set 5 : Initialize *status_ in the C++11'y way #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -671 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector.h View 1 2 3 10 chunks +43 lines, -88 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector.cc View 1 2 3 4 25 chunks +197 lines, -269 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector_browsertest.cc View 1 2 45 chunks +69 lines, -197 lines 0 comments Download
M chrome/browser/chromeos/policy/status_uploader.h View 1 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/browser/chromeos/policy/status_uploader.cc View 1 chunk +3 lines, -52 lines 0 comments Download
M chrome/browser/chromeos/policy/status_uploader_unittest.cc View 1 2 5 chunks +12 lines, -26 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M components/policy/proto/device_management_backend.proto View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (14 generated)
ljusten (tachyonic)
Please review "DeviceStatusCollector - Asynchronicity II".
4 years, 3 months ago (2016-09-06 14:20:14 UTC) #4
ljusten (tachyonic)
tnagel@chromium.org, atwilson@chromium.org, please review "DeviceStatusCollector - Asynchronicity II".
4 years, 3 months ago (2016-09-06 14:20:49 UTC) #5
Andrew T Wilson (Slow)
Code LGTM, but some comments on comments/documentation. https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc#newcode265 chrome/browser/chromeos/policy/device_status_collector.cc:265: // Helper ...
4 years, 2 months ago (2016-09-26 16:33:42 UTC) #13
Thiemo Nagel
https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc#newcode273 chrome/browser/chromeos/policy/device_status_collector.cc:273: device_status_(base::MakeUnique<em::DeviceStatusReportRequest>()), On 2016/09/26 16:33:42, Andrew T Wilson (Slow) wrote: ...
4 years, 2 months ago (2016-09-27 16:39:30 UTC) #14
ljusten (tachyonic)
Incorporated comments https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2314813002/diff/40001/chrome/browser/chromeos/policy/device_status_collector.cc#newcode265 chrome/browser/chromeos/policy/device_status_collector.cc:265: // Helper class for state tracking of ...
4 years, 2 months ago (2016-09-27 16:53:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2314813002/80001
4 years, 2 months ago (2016-09-28 07:33:23 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-28 08:13:09 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 08:14:49 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6e4082c0fc2425bb6f040e29baae4362246ef93d
Cr-Commit-Position: refs/heads/master@{#421475}

Powered by Google App Engine
This is Rietveld 408576698