#include "chrome/browser/ui/toolbar/app_menu_icon_controller.h"
#include "base/check_op.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt_manager.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
#include "chrome/common/channel_info.h"
#include "components/version_info/channel.h"
#include "ui/gfx/paint_vector_icon.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/crosapi/browser_util.h"
#endif
namespace {
#if !BUILDFLAG(IS_CHROMEOS_ASH)
AppMenuIconController::Severity SeverityFromUpgradeLevel(
bool show_very_low_upgrade_level,
UpgradeDetector::UpgradeNotificationAnnoyanceLevel level) { … }
#endif
bool IsUnstableChannel() { … }
}
AppMenuIconController::AppMenuIconController(Profile* profile,
Delegate* delegate)
: … { … }
AppMenuIconController::AppMenuIconController(UpgradeDetector* upgrade_detector,
Profile* profile,
Delegate* delegate)
: … { … }
AppMenuIconController::~AppMenuIconController() { … }
void AppMenuIconController::UpdateDelegate() { … }
AppMenuIconController::TypeAndSeverity
AppMenuIconController::GetTypeAndSeverity() const { … }
void AppMenuIconController::OnGlobalErrorsChanged() { … }
void AppMenuIconController::OnUpgradeRecommended() { … }
void AppMenuIconController::OnShowAppMenuPromptChanged() { … }