#include "components/metrics/component_metrics_provider.h"
#include <string>
#include <string_view>
#include "base/containers/fixed_flat_map.h"
#include "base/hash/hash.h"
#include "base/strings/string_number_conversions.h"
#include "components/component_updater/component_updater_service.h"
#include "third_party/metrics_proto/system_profile.pb.h"
namespace metrics {
namespace {
uint32_t Trim(const std::string& fp) { … }
}
ComponentMetricsProvider::ComponentMetricsProvider(
std::unique_ptr<ComponentMetricsProviderDelegate> components_info_delegate)
: … { … }
ComponentMetricsProvider::~ComponentMetricsProvider() = default;
SystemProfileProto_ComponentId ComponentMetricsProvider::CrxIdToComponentId(
const std::string& app_id) { … }
void ComponentMetricsProvider::ProvideSystemProfileMetrics(
SystemProfileProto* system_profile) { … }
}