#include "chrome/browser/feedback/system_logs/log_sources/performance_log_source.h"
#include <string>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/performance_manager/public/user_tuning/user_performance_tuning_manager.h"
#include "components/feedback/feedback_report.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/user_tuning/prefs.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
namespace system_logs {
BatterySaverModeState;
kBatterySaverModeState;
namespace {
std::string BoolToString(bool value) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
std::string BatterySaverModeStateToString(BatterySaverModeState state) { … }
#endif
}
PerformanceLogSource::PerformanceLogSource() : … { … }
PerformanceLogSource::~PerformanceLogSource() = default;
void PerformanceLogSource::Fetch(SysLogsSourceCallback callback) { … }
void PerformanceLogSource::PopulatePerformanceSettingLogs(
SystemLogsResponse* response) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
void PerformanceLogSource::PopulateBatteryDetailLogs(
SystemLogsResponse* response) { … }
#endif
}