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

Issue 845313008: Refactored device status uploading out of policy fetch infrastructure. (Closed)

Created:
5 years, 11 months ago by Andrew T Wilson (Slow)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactored device status uploading out of policy fetch infrastructure. Created StatusUploader class to manage the uploading of device status. Refactored status uploading functionality in cloud policy infrastructure - the timing and contents of the device upload are now controlled by StatusUploader, while CloudPolicyClient exposes an API to create the upload job. BUG=430908 Committed: https://crrev.com/7dc108c5f3e04ea68ad1444ab3910dbfca9da92a Cr-Commit-Position: refs/heads/master@{#313535}

Patch Set 1 #

Patch Set 2 : Merge ToT #

Patch Set 3 : Fixed errors in components_unittest #

Patch Set 4 : Merge tot #

Patch Set 5 : Added tests, fixed existing tests. #

Total comments: 36

Patch Set 6 : test fixes #

Patch Set 7 : Test fixes and review feedback #

Total comments: 4

Patch Set 8 : Review feedback #

Total comments: 8

Patch Set 9 : Review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -133 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 7 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 5 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector.h View 1 2 3 4 5 6 7 3 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/policy/status_uploader.h View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/status_uploader.cc View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/status_uploader_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +150 lines, -0 lines 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 1 2 3 2 chunks +29 lines, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.h View 1 2 3 4 5 6 7 4 chunks +16 lines, -28 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.cc View 1 2 3 4 5 6 7 6 chunks +42 lines, -24 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 7 19 chunks +64 lines, -47 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Andrew T Wilson (Slow)
PTAL
5 years, 11 months ago (2015-01-22 15:56:19 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/845313008/diff/80001/chrome/browser/chromeos/policy/device_status_collector.h File chrome/browser/chromeos/policy/device_status_collector.h (right): https://codereview.chromium.org/845313008/diff/80001/chrome/browser/chromeos/policy/device_status_collector.h#newcode78 chrome/browser/chromeos/policy/device_status_collector.h:78: enterprise_management::SessionStatusReportRequest* status); I don't think we're using this at ...
5 years, 11 months ago (2015-01-23 13:46:35 UTC) #3
Andrew T Wilson (Slow)
PTAL https://codereview.chromium.org/845313008/diff/80001/chrome/browser/chromeos/policy/device_status_collector.h File chrome/browser/chromeos/policy/device_status_collector.h (right): https://codereview.chromium.org/845313008/diff/80001/chrome/browser/chromeos/policy/device_status_collector.h#newcode78 chrome/browser/chromeos/policy/device_status_collector.h:78: enterprise_management::SessionStatusReportRequest* status); On 2015/01/23 13:46:34, Mattias Nissler wrote: ...
5 years, 11 months ago (2015-01-23 19:16:19 UTC) #4
Mattias Nissler (ping if slow)
I think we need to get the session status upload question sorted - see inline ...
5 years, 11 months ago (2015-01-26 10:37:02 UTC) #5
Andrew T Wilson (Slow)
PTAL - I think I addressed all your requests: added timing tests, commented on need ...
5 years, 10 months ago (2015-01-28 13:19:12 UTC) #6
Mattias Nissler (ping if slow)
This looks mostly good now, just some nits. LGTM for the case of any test ...
5 years, 10 months ago (2015-01-28 15:44:06 UTC) #7
Andrew T Wilson (Slow)
https://codereview.chromium.org/845313008/diff/140001/chrome/browser/chromeos/policy/status_uploader.cc File chrome/browser/chromeos/policy/status_uploader.cc (right): https://codereview.chromium.org/845313008/diff/140001/chrome/browser/chromeos/policy/status_uploader.cc#newcode36 chrome/browser/chromeos/policy/status_uploader.cc:36: // should be destroyed by the owner if the ...
5 years, 10 months ago (2015-01-28 16:13:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845313008/160001
5 years, 10 months ago (2015-01-28 16:14:05 UTC) #10
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-01-28 17:25:55 UTC) #11
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 17:27:30 UTC) #12
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7dc108c5f3e04ea68ad1444ab3910dbfca9da92a
Cr-Commit-Position: refs/heads/master@{#313535}

Powered by Google App Engine
This is Rietveld 408576698