Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: chrome/browser/views/browser_actions_container.cc

Issue 246107: [chromium-reviews] Fix for BrowserActions load/unload not changing Omnibox length. BrowserAction... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/browser_actions_container.cc
===================================================================
--- chrome/browser/views/browser_actions_container.cc (revision 28005)
+++ chrome/browser/views/browser_actions_container.cc (working copy)
@@ -375,6 +375,9 @@
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";
}
@@ -413,7 +416,7 @@
}
}
-void BrowserActionsContainer::PaintBadge(gfx::Canvas* canvas,
+void BrowserActionsContainer::PaintBadge(gfx::Canvas* canvas,
BrowserActionImageView* view,
const SkColor& badge_color,
const std::string& text) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698