support-tool: Introduce PolicyDataCollector class
PolicyDataCollector will collect available policy values and policy
metadata in the device and add to Support Tool's output. Add a new
GenerateJson function which will take policy values and status and
generate Json file from given values instead of collecting policy data
itself.
Bug: b:233209045
Change-Id: Ifed14a5af769c7fb628f1867c8cfd39727b109ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3910010
Reviewed-by: Pavol Marko <[email protected]>
Reviewed-by: David Roger <[email protected]>
Commit-Queue: Irem Uguz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1058057}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 3ebc8cf2..42d640b8 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -4308,6 +4308,8 @@
"storage/storage_notification_service_impl.cc",
"storage/storage_notification_service_impl.h",
"support_tool/data_collector.h",
+ "support_tool/policy_data_collector.cc",
+ "support_tool/policy_data_collector.h",
"support_tool/support_packet_metadata.cc",
"support_tool/support_packet_metadata.h",
"support_tool/support_tool_handler.cc",