chromium/chrome/browser/web_applications/web_app_ui_manager.cc

// Copyright 2022 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/web_app_ui_manager.h"

#include "base/auto_reset.h"
#include "base/feature_list.h"
#include "chrome/browser/web_applications/web_app_callback_app_identity.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"

namespace web_app {

namespace {

// Keeps track of whether the testing code has set an action to be performed
// when the app identity update confirmation dialog is set to show. The behavior
// is determined by the IdentityUpdateDialogAction enum in
// web_app_ui_manager.h.
std::optional<AppIdentityUpdate>
    g_auto_resolve_app_identity_update_dialog_for_testing =;

}  // namespace

base::AutoReset<std::optional<AppIdentityUpdate>>
SetIdentityUpdateDialogActionForTesting(  // IN-TEST
    std::optional<AppIdentityUpdate> auto_accept_action) {}

std::optional<AppIdentityUpdate>
GetIdentityUpdateDialogActionForTesting() {}

// static
apps::AppLaunchParams WebAppUiManager::CreateAppLaunchParamsWithoutWindowConfig(
    const webapps::AppId& app_id,
    const base::CommandLine& command_line,
    const base::FilePath& current_directory,
    const std::optional<GURL>& url_handler_launch_url,
    const std::optional<GURL>& protocol_handler_launch_url,
    const std::optional<GURL>& file_launch_url,
    const std::vector<base::FilePath>& launch_files) {}

WebAppUiManager::WebAppUiManager() = default;

WebAppUiManager::~WebAppUiManager() {}

base::WeakPtr<WebAppUiManager> WebAppUiManager::GetWeakPtr() {}

void WebAppUiManager::AddObserver(WebAppUiManagerObserver* observer) {}

void WebAppUiManager::RemoveObserver(WebAppUiManagerObserver* observer) {}

void WebAppUiManager::NotifyReadyToCommitNavigation(
    const webapps::AppId& app_id,
    content::NavigationHandle* navigation_handle) {}

}  // namespace web_app