DescriptionFix disappearing page actions bug.
The logic in LocationBarViewMac implicitly relied on the assumption that there
is a 1:1 correspondence between |page_actions_| and |page_action_decorations_|.
The implementation of DeletePageActionDecorations() cleared one vector but not
the other, breaking this implicit assumption and causing the bug. This CL
removes |page_actions_|, as the information is already contained within
|page_action_decorations_|, which fixes the bug.
The same was true for LocationBarView, modulo some minor renaming of members
and methods. There was a second bug in LocationBarView, where
InvalidatePageActions() deleted the page actions instead of refreshing them.
The documentation for InvalidatePageActions() and UpdatePageActions() implied
that the two methods were called at different times, and should have different
effects. Looking at the call sites, UpdatePageActions() was being called in
places where the documentation implied InvalidatePageActions() should be
called. This CL deletes InvalidatePageActions().
BUG=173055
TBR=jcivelli@chromium.org
Committed: https://crrev.com/545918a1b072eed5e15f28c772c682f9167b6677
Cr-Commit-Position: refs/heads/master@{#309797}
Patch Set 1 : Minor rename. #
Total comments: 11
Patch Set 2 : Significant clean up. #
Total comments: 4
Patch Set 3 : Comments from pkasting. #
Total comments: 6
Patch Set 4 : Comments from pkasting. #Patch Set 5 : Comments from wittman. #
Messages
Total messages: 42 (15 generated)
|