Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Issue 1871433002: Alternative fix for FindToolbar crash when reparenting. (Closed)

Created:
4 years, 8 months ago by newt (away)
Modified:
4 years, 8 months ago
Reviewers:
Yusuf
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Alternative 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 #

Messages

Total messages: 13 (6 generated)
newt (away)
PTAL
4 years, 8 months ago (2016-04-07 01:45:01 UTC) #2
Yusuf
lgtm
4 years, 8 months ago (2016-04-07 17:29:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871433002/1
4 years, 8 months ago (2016-04-07 17:30:53 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/47364) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-04-07 17:42:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871433002/20001
4 years, 8 months ago (2016-04-07 20:29:43 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-07 21:17:06 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 21:29:35 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00daa0b973e09d63d8d1d9d637eccf1228e3c542
Cr-Commit-Position: refs/heads/master@{#385856}

Powered by Google App Engine
This is Rietveld 408576698