#include "chrome/browser/web_applications/commands/os_integration_synchronize_command.h"
#include <memory>
#include <utility>
#include "base/functional/callback.h"
#include "base/values.h"
#include "chrome/browser/web_applications/commands/web_app_command.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/os_integration/os_integration_manager.h"
#include "chrome/browser/web_applications/os_integration/web_app_shortcut.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "components/webapps/common/web_app_id.h"
namespace web_app {
namespace {
base::Value SynchronizeOptionsDebugValue(const SynchronizeOsOptions& options) { … }
}
OsIntegrationSynchronizeCommand::OsIntegrationSynchronizeCommand(
const webapps::AppId& app_id,
std::optional<SynchronizeOsOptions> synchronize_options,
bool upgrade_to_fully_installed_if_installed,
base::OnceClosure synchronize_callback)
: … { … }
OsIntegrationSynchronizeCommand::~OsIntegrationSynchronizeCommand() = default;
void OsIntegrationSynchronizeCommand::StartWithLock(
std::unique_ptr<AppLock> app_lock) { … }
void OsIntegrationSynchronizeCommand::OnSynchronizeComplete() { … }
}