Skip to content

Commit

Permalink
Address P3A metric config feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
DJAndries committed Dec 13, 2024
1 parent 7690574 commit fccf72d
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 143 deletions.
2 changes: 2 additions & 0 deletions components/brave_stats/browser/brave_stats_updater_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ enum class ProcessArch {

std::string GetDateAsYMD(const base::Time& time);

// Returns platform with architecture information i.e. winx64-bc, osxarm64-bc
std::string GetPlatformIdentifier();

// Returns platform without architecture information i.e. windows, macos
std::string GetGeneralPlatformIdentifier();

int GetIsoWeekNumber(const base::Time& time);
Expand Down
2 changes: 1 addition & 1 deletion components/p3a/message_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ std::string MessageManager::SerializeLog(std::string_view histogram_name,
}

const std::optional<MetricConfig>* MessageManager::GetMetricConfig(
const std::string_view histogram_name) const {
std::string_view histogram_name) const {
const std::optional<MetricConfig>* metric_config = nullptr;

auto it = p3a::kCollectedTypicalHistograms.find(histogram_name);
Expand Down
2 changes: 1 addition & 1 deletion components/p3a/message_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class MessageManager : public MetricLogStore::Delegate {
std::optional<bool> only_update_for_constellation = std::nullopt);

const std::optional<MetricConfig>* GetMetricConfig(
const std::string_view histogram_name) const;
std::string_view histogram_name) const;

private:
void StartScheduledUpload(bool is_constellation, MetricLogType log_type);
Expand Down
Loading

0 comments on commit fccf72d

Please sign in to comment.