#include "chrome/browser/web_applications/generated_icon_fix_manager.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/to_string.h"
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/web_applications/generated_icon_fix_util.h"
#include "chrome/browser/web_applications/locks/all_apps_lock.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/locks/with_app_resources.h"
#include "chrome/browser/web_applications/proto/web_app.pb.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_command_manager.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"
#include "chrome/common/chrome_features.h"
namespace web_app {
namespace {
bool g_disable_auto_retry_for_testing = …;
bool IsEnabled() { … }
}
void GeneratedIconFixManager::DisableAutoRetryForTesting() { … }
GeneratedIconFixManager::GeneratedIconFixManager() = default;
GeneratedIconFixManager::~GeneratedIconFixManager() = default;
void GeneratedIconFixManager::SetProvider(base::PassKey<WebAppProvider>,
WebAppProvider& provider) { … }
void GeneratedIconFixManager::Start() { … }
void GeneratedIconFixManager::InvalidateWeakPtrsForTesting() { … }
void GeneratedIconFixManager::ScheduleFixes(AllAppsLock& all_apps_lock,
base::Value::Dict& debug_value) { … }
bool GeneratedIconFixManager::MaybeScheduleFix(const webapps::AppId& app_id,
WithAppResources& resources,
base::Value::Dict& debug_value) { … }
void GeneratedIconFixManager::MaybeScheduleFixAppLock(
const webapps::AppId& app_id,
AppLock& app_lock,
base::Value::Dict& debug_value) { … }
GeneratedIconFixScheduleDecision GeneratedIconFixManager::MakeScheduleDecision(
const WebApp* app) { … }
void GeneratedIconFixManager::StartFix(const webapps::AppId& app_id) { … }
void GeneratedIconFixManager::FixCompleted(const webapps::AppId& app_id,
GeneratedIconFixResult result) { … }
}