• aburago@chromium.org's avatar
    Fix handling of minimized panel count · 104432df
    aburago@chromium.org authored
    Increments and decrements of minimized panel count in the docking strip would not balance out in certain scenarios, e.g.: 
    - if you add a panel that is already minimized (the count was incremented before the panel is added, sometimes causing a DCHECK to fire) 
    - if you minimize a panel that is in "temporary layout" 
    - if a panel's expansion state is changed when it is not in the docked strip (that is very hard to guard against, since a panel can jump into the overflow strip as a side effect of many operations) 
    
    Changed the handling of minimized panel count to be more bullet-proof; added a test 
    
    BUG=113682
    TEST=PanelOverflowBrowserTest::AddMinimizedTillOverflow()
    
    Review URL: http://codereview.chromium.org/9699036
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126966 0039d316-1c4b-4281-b951-d872f2087c98
    104432df
panel.h 13.9 KB