DescriptionEnsure CCTs have the proper context menu on tab restore.
Custom tab context menus worked previously because CustomTabActivity
was in charge of creating the initial tab, and all subsequent tabs
reuse the delegate of the parent tab.
When restoring, the TabModelSelectorImpl via TabPersistentStore
was creating the tabs and using the default logic in ChromeTabCreator.
This change moves ChromeTabCreator creation to the activities
themselves, which allows CCTs to overwrite the default tab delegate
construction. This also moves the svelte tab saving logic to the
selector, which is consistent with all other tab saving behavior (and
allows the activity to be unaware of that dependency and enables
creation w/ fewer params).
BUG=649139
Committed: https://crrev.com/aaaf17110586e60d241acf02148f9be2dc683015
Cr-Commit-Position: refs/heads/master@{#420702}
Patch Set 1 #
Messages
Total messages: 14 (9 generated)
|