Update client: add support for running actions

Desktop / Chromium - Sorin Jianu [chromium.org] - 15 June 2017 16:40 EDT

The code is work in progress for the improved recovery component. Nothing is actually run at the moment but there is sufficient code for review.

Next step is to build a command runner which runs the payload.

Bug: 687231 Change-Id: Ie0ae46e7f5f7dd7f5c8ccfd530d707373891af15 Reviewed-on: https://chromium-review.googlesource.com/536294 Commit-Queue: Sorin Jianu

4ab7c29 Update client: add support for running actions.
.../recovery_improved_component_installer.cc | 2 +
chrome/browser/ui/webui/components_ui.cc | 1 +
components/update_client/BUILD.gn | 2 +
components/update_client/action_runner.cc | 82 ++++++
components/update_client/action_runner.h | 56 ++++
components/update_client/component.cc | 121 +++++---
components/update_client/component.h | 27 +-
components/update_client/protocol_builder.cc | 21 +-
components/update_client/protocol_builder.h | 6 +-
components/update_client/test_configurator.h | 6 +
components/update_client/update_client.h | 1 +
components/update_client/update_client_unittest.cc | 322 +++++++++++++++++++++
12 files changed, 609 insertions(+), 38 deletions(-)

Upstream: git.chromium.org


  • Share