chromium/chrome/browser/ui/extensions/mv2_disabled_dialog_controller.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/ui/extensions/mv2_disabled_dialog_controller.h"

#include "base/barrier_closure.h"
#include "base/check_is_test.h"
#include "base/functional/bind.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/manifest_v2_experiment_manager.h"
#include "chrome/browser/extensions/mv2_experiment_stage.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/extensions/extensions_dialogs.h"
#include "chrome/browser/ui/startup/startup_browser_creator.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "extensions/browser/extension_icon_placeholder.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/image_loader.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "mojo/public/cpp/bindings/lib/string_serialization.h"

namespace extensions {

namespace {

// Stores a bit for whether the user acknowledged the dialog informing the
// extension being disabled as part of the MV2 deprecation.
constexpr PrefMap kMV2DeprecationDisabledDialogAcknowledgedPref =;

// Returns whether `extension` should be included in the disabled dialog.
bool IsExtensionAffected(const Extension& extension,
                         ExtensionPrefs* extension_prefs,
                         ManagementPolicy* policy) {}

}  // namespace

Mv2DisabledDialogController::Mv2DisabledDialogController(Browser* browser)
    :{}

Mv2DisabledDialogController::~Mv2DisabledDialogController() = default;

void Mv2DisabledDialogController::TearDown() {}

void Mv2DisabledDialogController::MaybeShowDisabledDialogForTesting() {}

void Mv2DisabledDialogController::ComputeAffectedExtensions() {}

void Mv2DisabledDialogController::OnExtensionIconLoaded(
    const ExtensionId& extension_id,
    const std::string& extension_name,
    base::OnceClosure done_callback,
    const gfx::Image& icon) {}

void Mv2DisabledDialogController::MaybeShowDisabledDialog() {}

void Mv2DisabledDialogController::OnRemoveSelected() {}

void Mv2DisabledDialogController::OnManageSelected() {}

void Mv2DisabledDialogController::UserAcknowledgedDialog() {}

}  // namespace extensions