Descriptioncustomtabs: Run the session cleanup code on the UI thread.
This fixes two issues, a test issue and a real one:
- CustomTabsConnectionTest#tearDown() doesn't run on the UI thread. It
calls CustomTabsConnection#cleanupAll() which calls a method that has
to run on the UI thread. Run CustomTabsConnectionTest#tearDown() on
the UI thread to fix this.
- IBinder.DeathRecipient#binderDied() is not necessarily called on the
UI thread, and has to unregister the death recipient.
BUG=523057
Committed: https://crrev.com/e26acf52b32b3e49ceec2b58f0e86cc932b9715b
Cr-Commit-Position: refs/heads/master@{#344797}
Patch Set 1 #Patch Set 2 : Re-enable the disabled test. #Patch Set 3 : . #
Messages
Total messages: 8 (2 generated)
|