browser_(browser),
current_tab_id_(-1),
preview_enabled_(false),
- popup_(NULL),
- scoped_icon_animation_observer_(
- page_action->GetIconAnimation(
- SessionID::IdForTab(owner->GetWebContents())),
- this) {
+ popup_(NULL) {
const Extension* extension = owner_->profile()->GetExtensionService()->
GetExtensionById(page_action->extension_id(), false);
DCHECK(extension);
UpdateVisibility(web_contents, current_url_);
}
-void PageActionImageView::OnIconChanged() {
- OnIconUpdated();
-}
-
void PageActionImageView::PaintChildren(gfx::Canvas* canvas) {
View::PaintChildren(canvas);
if (current_tab_id_ >= 0)