Index: chrome/common/extensions/extension_action.cc |
diff --git a/chrome/common/extensions/extension_action.cc b/chrome/common/extensions/extension_action.cc |
index c857864e3267ec3c54b47d0a0d285919099a7528..e54c2559dd542b51391826edfea6ff53a1216000 100644 |
--- a/chrome/common/extensions/extension_action.cc |
+++ b/chrome/common/extensions/extension_action.cc |
@@ -319,9 +319,10 @@ bool ExtensionAction::SetAppearance(int tab_id, Appearance new_appearance) { |
SetValue(&appearance_, tab_id, new_appearance); |
- // When showing a badge for the first time on a web page, fade it |
- // in. Other transitions happen instantly. |
- if (old_appearance == INVISIBLE && tab_id != kDefaultTabId) { |
+ // When showing a script badge for the first time on a web page, fade it in. |
+ // Other transitions happen instantly. |
+ if (old_appearance == INVISIBLE && tab_id != kDefaultTabId && |
+ action_type_ == TYPE_SCRIPT_BADGE) { |
RunIconAnimation(tab_id); |
} |