#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 {
std::optional<AppIdentityUpdate>
g_auto_resolve_app_identity_update_dialog_for_testing = …;
}
base::AutoReset<std::optional<AppIdentityUpdate>>
SetIdentityUpdateDialogActionForTesting(
std::optional<AppIdentityUpdate> auto_accept_action) { … }
std::optional<AppIdentityUpdate>
GetIdentityUpdateDialogActionForTesting() { … }
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) { … }
}