Index: chrome/browser/views/browser_actions_container.cc |
diff --git a/chrome/browser/views/browser_actions_container.cc b/chrome/browser/views/browser_actions_container.cc |
index fb502700ca6f080d86de56b401c988440f6d1bdc..b6308065704f5ce18e0a691888c651e2e5158ea5 100644 |
--- a/chrome/browser/views/browser_actions_container.cc |
+++ b/chrome/browser/views/browser_actions_container.cc |
@@ -915,7 +915,8 @@ void BrowserActionsContainer::BrowserActionAdded(const Extension* extension, |
// Enlarge the container if it was already at maximum size and we're not in |
// the middle of upgrading. |
- if ((model_->GetVisibleIconCount() < 0) && !extension->being_upgraded()) { |
+ if ((model_->GetVisibleIconCount() < 0) && |
+ !profile_->GetExtensionsService()->IsBeingUpgraded(extension)) { |
suppress_chevron_ = true; |
SaveDesiredSizeAndAnimate(Tween::LINEAR, visible_actions + 1); |
} else { |
@@ -940,7 +941,7 @@ void BrowserActionsContainer::BrowserActionRemoved(const Extension* extension) { |
// If the extension is being upgraded we don't want the bar to shrink |
// because the icon is just going to get re-added to the same location. |
- if (extension->being_upgraded()) |
+ if (profile_->GetExtensionsService()->IsBeingUpgraded(extension)) |
return; |
if (browser_action_views_.size() > visible_actions) { |