Turn OmahaRequestPrepAction into OmahaRequestDeviceParams.

Pass the params to OmahaRequestAction's ctor. This simplifies a bit
executing as well as testing of OmahaRequestAction and testing of
OmahaRequestDeviceParams. It also allows us to initialize the params
once per update attempt and use them for all OmahaRequestActions.

BUG=560
TEST=unit tests, gmerged on device and forced an update through dev server,
inspected logs.

Review URL: http://codereview.chromium.org/2836053
12 files changed
tree: 0b533321f788a3dd1e0a415e6549d70e39d10f7b
  1. .gitignore
  2. action.h
  3. action_pipe.h
  4. action_pipe_unittest.cc
  5. action_processor.cc
  6. action_processor.h
  7. action_processor_unittest.cc
  8. action_unittest.cc
  9. bzip.cc
  10. bzip.h
  11. bzip_extent_writer.cc
  12. bzip_extent_writer.h
  13. bzip_extent_writer_unittest.cc
  14. cycle_breaker.cc
  15. cycle_breaker.h
  16. cycle_breaker_unittest.cc
  17. dbus_constants.h
  18. dbus_service.cc
  19. dbus_service.h
  20. decompressing_file_writer.cc
  21. decompressing_file_writer.h
  22. decompressing_file_writer_unittest.cc
  23. delta_diff_generator.cc
  24. delta_diff_generator.h
  25. delta_diff_generator_unittest.cc
  26. delta_performer.cc
  27. delta_performer.h
  28. delta_performer_unittest.cc
  29. download_action.cc
  30. download_action.h
  31. download_action_unittest.cc
  32. extent_mapper.cc
  33. extent_mapper.h
  34. extent_mapper_unittest.cc
  35. extent_writer.cc
  36. extent_writer.h
  37. extent_writer_unittest.cc
  38. file_writer.cc
  39. file_writer.h
  40. file_writer_unittest.cc
  41. filesystem_copier_action.cc
  42. filesystem_copier_action.h
  43. filesystem_copier_action_unittest.cc
  44. filesystem_iterator.cc
  45. filesystem_iterator.h
  46. filesystem_iterator_unittest.cc
  47. gen_coverage_html.sh
  48. generate_delta_main.cc
  49. graph_types.h
  50. graph_utils.cc
  51. graph_utils.h
  52. graph_utils_unittest.cc
  53. gzip.cc
  54. gzip.h
  55. http_fetcher.h
  56. http_fetcher_unittest.cc
  57. inherit-review-settings-ok
  58. install_plan.h
  59. integration_unittest.cc
  60. libcurl_http_fetcher.cc
  61. libcurl_http_fetcher.h
  62. local_coverage_rate.sh
  63. main.cc
  64. marshal.list
  65. mock_file_writer.h
  66. mock_http_fetcher.cc
  67. mock_http_fetcher.h
  68. omaha_hash_calculator.cc
  69. omaha_hash_calculator.h
  70. omaha_hash_calculator_unittest.cc
  71. omaha_request_action.cc
  72. omaha_request_action.h
  73. omaha_request_action_unittest.cc
  74. omaha_request_params.cc
  75. omaha_request_params.h
  76. omaha_request_params_unittest.cc
  77. omaha_response_handler_action.cc
  78. omaha_response_handler_action.h
  79. omaha_response_handler_action_unittest.cc
  80. org.chromium.UpdateEngine.service
  81. postinstall_runner_action.cc
  82. postinstall_runner_action.h
  83. postinstall_runner_action_unittest.cc
  84. SConstruct
  85. set_bootable_flag_action.cc
  86. set_bootable_flag_action.h
  87. set_bootable_flag_action_unittest.cc
  88. simple_key_value_store.cc
  89. simple_key_value_store.h
  90. simple_key_value_store_unittest.cc
  91. split_file_writer.cc
  92. split_file_writer.h
  93. split_file_writer_unittest.cc
  94. subprocess.cc
  95. subprocess.h
  96. subprocess_unittest.cc
  97. tarjan.cc
  98. tarjan.h
  99. tarjan_unittest.cc
  100. test_http_server.cc
  101. test_http_server.py
  102. test_utils.cc
  103. test_utils.h
  104. testrunner.cc
  105. topological_sort.cc
  106. topological_sort.h
  107. topological_sort_unittest.cc
  108. update_attempter.cc
  109. update_attempter.h
  110. update_engine.xml
  111. update_engine_client.cc
  112. update_metadata.proto
  113. UpdateEngine.conf
  114. utils.cc
  115. utils.h
  116. utils_unittest.cc
  117. zip_unittest.cc