#include "chrome/browser/extensions/warning_badge_service.h"
#include <stddef.h>
#include <memory>
#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/extensions/warning_badge_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/global_error/global_error.h"
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
namespace {
class ErrorBadge : public GlobalError { … };
ErrorBadge::ErrorBadge(WarningBadgeService* badge_service)
: … { … }
ErrorBadge::~ErrorBadge() { … }
bool ErrorBadge::HasMenuItem() { … }
int ErrorBadge::MenuItemCommandID() { … }
std::u16string ErrorBadge::MenuItemLabel() { … }
void ErrorBadge::ExecuteMenuItem(Browser* browser) { … }
bool ErrorBadge::HasBubbleView() { … }
bool ErrorBadge::HasShownBubbleView() { … }
void ErrorBadge::ShowBubbleView(Browser* browser) { … }
GlobalErrorBubbleViewBase* ErrorBadge::GetBubbleView() { … }
int ErrorBadge::GetMenuItemCommandID() { … }
}
WarningBadgeService::WarningBadgeService(Profile* profile) : … { … }
WarningBadgeService::~WarningBadgeService() { … }
WarningBadgeService* WarningBadgeService::Get(
content::BrowserContext* context) { … }
void WarningBadgeService::SuppressCurrentWarnings() { … }
const WarningSet& WarningBadgeService::GetCurrentWarnings() const { … }
void WarningBadgeService::ExtensionWarningsChanged(
const ExtensionIdSet& affected_extensions) { … }
void WarningBadgeService::UpdateBadgeStatus() { … }
void WarningBadgeService::ShowBadge(bool show) { … }
}