#include <string>
#include <utility>
#include "chrome/browser/ui/extensions/extensions_dialogs.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chromeos/ui/vector_icons/vector_icons.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "extensions/common/extension.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/dialog_model.h"
#include "ui/base/models/image_model.h"
#include "ui/gfx/paint_vector_icon.h"
namespace {
std::u16string GetExtensionType(const extensions::Extension* extension) { … }
std::u16string GetTitle(
extensions::ExtensionInstalledBlockedByParentDialogAction action,
std::u16string extension_type) { … }
}
namespace extensions {
DEFINE_ELEMENT_IDENTIFIER_VALUE(kParentBlockedDialogMessage);
void ShowExtensionInstallBlockedByParentDialog(
ExtensionInstalledBlockedByParentDialogAction action,
const extensions::Extension* extension,
content::WebContents* web_contents,
base::OnceClosure done_callback) { … }
}