#include "chrome/browser/ui/web_applications/diagnostics/web_app_icon_health_checks.h"
#include "base/barrier_closure.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "chrome/browser/web_applications/app_service/web_app_publisher_helper.h"
#include "chrome/browser/web_applications/commands/web_app_icon_diagnostic_command.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
namespace web_app {
WebAppIconHealthChecks::WebAppIconHealthChecks(Profile* profile)
: … { … }
WebAppIconHealthChecks::~WebAppIconHealthChecks() = default;
void WebAppIconHealthChecks::Start(base::OnceClosure done_callback) { … }
base::WeakPtr<WebAppIconHealthChecks> WebAppIconHealthChecks::GetWeakPtr() { … }
void WebAppIconHealthChecks::OnWebAppWillBeUninstalled(
const webapps::AppId& app_id) { … }
void WebAppIconHealthChecks::OnWebAppInstallManagerDestroyed() { … }
void WebAppIconHealthChecks::RunDiagnostics() { … }
void WebAppIconHealthChecks::SaveDiagnosticForApp(
webapps::AppId app_id,
std::optional<WebAppIconDiagnosticResult> result) { … }
void WebAppIconHealthChecks::RecordDiagnosticResults() { … }
}