| Index: chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
|
| index 8401dc2e16af0a77a5fa8e47c8f7a1482fc86e3c..3e2038847ede044fe6553a3448283d3ea8209932 100644
|
| --- a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
|
| @@ -23,6 +23,11 @@ gfx::Size PageActionWithBadgeView::GetPreferredSize() const {
|
| ExtensionAction::kPageActionIconMaxSize);
|
| }
|
|
|
| +void PageActionWithBadgeView::UpdateVisibility(content::WebContents* contents) {
|
| + image_view_->UpdateVisibility(contents);
|
| + SetVisible(image_view_->visible());
|
| +}
|
| +
|
| void PageActionWithBadgeView::Layout() {
|
| // We have 25 pixels of vertical space in the Omnibox to play with, so even
|
| // sized icons (such as 16x16) have either a 5 or a 4 pixel whitespace
|
| @@ -33,7 +38,6 @@ void PageActionWithBadgeView::Layout() {
|
| image_view_->SetBounds(0, y, width(), height());
|
| }
|
|
|
| -void PageActionWithBadgeView::UpdateVisibility(content::WebContents* contents) {
|
| - image_view_->UpdateVisibility(contents);
|
| - SetVisible(image_view_->visible());
|
| +const char* PageActionWithBadgeView::GetClassName() const {
|
| + return "PageActionWithBadgeView";
|
| }
|
|
|