Chromium Code Reviews
        
  DescriptionAlternative fix for FindToolbar crash when reparenting.
As part of the fix for crbug.com/592315, TabModelObserver.tabRemoved()
is currently called *before* removing the tab from the model. This is
inconvenient since most (future) listeners of tabRemoved() need to know
the state *after* the tab has been removed.
New approach: FindToolbar now holds the WindowAndroid directly, instead
of using mTabModelSelector.getCurrentTab().getWindowAndroid() (which
fails after the last tab has been removed).
This also fixes a memory leak where FindToolbar held a reference
indefinitely to the last tab on which find-in-page was used.
BUG=595889
Committed: https://crrev.com/00daa0b973e09d63d8d1d9d637eccf1228e3c542
Cr-Commit-Position: refs/heads/master@{#385856}
   
  Patch Set 1 #Patch Set 2 : fix compile and rebase #Dependent Patchsets: Messages
    Total messages: 13 (6 generated)
     
  
  
       |