#include "chrome/browser/ui/views/web_apps/force_installed_preinstalled_deprecated_app_dialog_view.h"
#include <optional>
#include "base/auto_reset.h"
#include "base/containers/contains.h"
#include "base/containers/flat_map.h"
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_functions.h"
#include "base/no_destructor.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/web_applications/extension_status_utils.h"
#include "chrome/browser/web_applications/web_app_id_constants.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/constants.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/base/ui_base_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/base/window_open_disposition_utils.h"
#include "ui/events/event.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/typography.h"
#include "ui/views/window/dialog_delegate.h"
#include "url/gurl.h"
namespace {
std::optional<ForceInstalledPreinstalledDeprecatedAppDialogView::LinkConfig>&
GetLinkConfigForTesting() { … }
const base::flat_map<
extensions::ExtensionId,
ForceInstalledPreinstalledDeprecatedAppDialogView::LinkConfig>&
GetChromeAppConfigs() { … }
}
void ForceInstalledPreinstalledDeprecatedAppDialogView::CreateAndShowDialog(
const extensions::ExtensionId& extension_id,
content::WebContents* web_contents) { … }
base::AutoReset<std::optional<
ForceInstalledPreinstalledDeprecatedAppDialogView::LinkConfig>>
ForceInstalledPreinstalledDeprecatedAppDialogView::
SetOverrideLinkConfigForTesting(
const ForceInstalledPreinstalledDeprecatedAppDialogView::LinkConfig&
link_config) { … }
ForceInstalledPreinstalledDeprecatedAppDialogView::
ForceInstalledPreinstalledDeprecatedAppDialogView(
const std::u16string& app_name,
const GURL& app_link,
const std::u16string& link_string,
content::WebContents* web_contents) { … }
BEGIN_METADATA(…)