#include "chrome/browser/web_applications/commands/generated_icon_fix_command.h"
#include <memory>
#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/web_applications/generated_icon_fix_util.h"
#include "chrome/browser/web_applications/locks/shared_web_contents_with_app_lock.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_icon_generator.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "chrome/browser/web_applications/web_app_install_manager.h"
#include "chrome/browser/web_applications/web_app_install_utils.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "chrome/browser/web_applications/web_contents/web_app_icon_downloader.h"
#include "chrome/browser/web_applications/web_contents/web_contents_manager.h"
#include "chrome/common/chrome_features.h"
#include "ui/gfx/geometry/size.h"
namespace web_app {
GeneratedIconFixCommand::GeneratedIconFixCommand(
webapps::AppId app_id,
GeneratedIconFixSource source,
base::OnceCallback<void(GeneratedIconFixResult)> callback)
: … { … }
GeneratedIconFixCommand::~GeneratedIconFixCommand() = default;
void GeneratedIconFixCommand::StartWithLock(
std::unique_ptr<SharedWebContentsWithAppLock> lock) { … }
void GeneratedIconFixCommand::OnIconsDownloaded(
IconsDownloadedResult result,
IconsMap icons_map,
DownloadedIconsHttpResults icons_http_results) { … }
void GeneratedIconFixCommand::OnIconsWritten(bool success) { … }
void GeneratedIconFixCommand::Stop(GeneratedIconFixResult result,
base::Location location) { … }
}