summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorsidchat@chromium.org <sidchat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 23:51:28 +0000
committersidchat@chromium.org <sidchat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 23:51:28 +0000
commit073ce1ad66dc0df98c6540bd3298f5881f401e92 (patch)
treec74add7927f113fc60154ee19dd9cffc698299fe /chrome/browser/views
parent75f71de6b7097f835da8add097676b3f9cb72898 (diff)
downloadchromium_src-073ce1ad66dc0df98c6540bd3298f5881f401e92.zip
chromium_src-073ce1ad66dc0df98c6540bd3298f5881f401e92.tar.gz
chromium_src-073ce1ad66dc0df98c6540bd3298f5881f401e92.tar.bz2
Fix for BrowserActions UNLOAD not changing Omnibox length. BrowserActionsContainer is the child view of ToolBarView. When BrowserActionsContainer gets notification for LOAD/UNLOAD, it needs to re-layout ToolBarView, its parent.
BUG=23381 TEST=none Review URL: http://codereview.chromium.org/246107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/browser_actions_container.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/browser_actions_container.cc b/chrome/browser/views/browser_actions_container.cc
index ae68c37..126d089 100644
--- a/chrome/browser/views/browser_actions_container.cc
+++ b/chrome/browser/views/browser_actions_container.cc
@@ -378,6 +378,9 @@ void BrowserActionsContainer::Observe(NotificationType type,
type == NotificationType::EXTENSION_UNLOADED ||
type == NotificationType::EXTENSION_UNLOADED_DISABLED) {
RefreshBrowserActionViews();
+
+ // All these actions may change visibility of BrowserActions.
+ OnBrowserActionVisibilityChanged();
} else {
NOTREACHED() << L"Received unexpected notification";
}
@@ -416,7 +419,7 @@ void BrowserActionsContainer::PaintChildren(gfx::Canvas* canvas) {
}
}
-void BrowserActionsContainer::PaintBadge(gfx::Canvas* canvas,
+void BrowserActionsContainer::PaintBadge(gfx::Canvas* canvas,
BrowserActionImageView* view,
const SkColor& badge_color,
const std::string& text) {