summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc')
-rw-r--r--chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc b/chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc
index d3838b1..da80866 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc
@@ -78,8 +78,7 @@ bool ShouldShowIncompatibilityWarning() {
WrenchMenuBadgeController::WrenchMenuBadgeController(Profile* profile,
Delegate* delegate)
: profile_(profile),
- delegate_(delegate),
- overflowed_toolbar_action_wants_to_run_(false) {
+ delegate_(delegate) {
DCHECK(profile_);
DCHECK(delegate_);
@@ -126,22 +125,10 @@ void WrenchMenuBadgeController::UpdateDelegate() {
return;
}
- if (overflowed_toolbar_action_wants_to_run_) {
- delegate_->UpdateBadgeSeverity(BADGE_TYPE_NONE,
- WrenchIconPainter::SEVERITY_INFO, true);
- return;
- }
-
delegate_->UpdateBadgeSeverity(BADGE_TYPE_NONE,
WrenchIconPainter::SEVERITY_NONE, true);
}
-void WrenchMenuBadgeController::SetOverflowedToolbarActionWantsToRun(
- bool wants_to_run) {
- overflowed_toolbar_action_wants_to_run_ = wants_to_run;
- UpdateDelegate();
-}
-
void WrenchMenuBadgeController::Observe(
int type,
const content::NotificationSource& source,