chromium/chrome/browser/web_applications/commands/set_user_display_mode_command.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/web_applications/commands/set_user_display_mode_command.h"

#include <memory>
#include <utility>

#include "base/functional/callback.h"
#include "base/metrics/user_metrics.h"
#include "base/not_fatal_until.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/mojom/user_display_mode.mojom-shared.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_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "components/webapps/common/web_app_id.h"

namespace web_app {

SetUserDisplayModeCommand::SetUserDisplayModeCommand(
    const webapps::AppId& app_id,
    mojom::UserDisplayMode user_display_mode,
    base::OnceClosure synchronize_callback)
    :{}

SetUserDisplayModeCommand::~SetUserDisplayModeCommand() = default;

void SetUserDisplayModeCommand::StartWithLock(
    std::unique_ptr<AppLock> app_lock) {}

// static
bool SetUserDisplayModeCommand::DoSetDisplayMode(
    WithAppResources& resources,
    const webapps::AppId& app_id,
    mojom::UserDisplayMode user_display_mode,
    bool is_user_action) {}

void SetUserDisplayModeCommand::OnSynchronizeComplete() {}

}  // namespace web_app