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

Issue 2359923005: Ensure CCTs have the proper context menu on tab restore. (Closed)

Created:
4 years, 3 months ago by Ted C
Modified:
4 years, 3 months ago
Reviewers:
Ian Wen, Yusuf
CC:
chromium-reviews, lizeb+watch-custom-tabs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure 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)
Ted C
PTAL
4 years, 3 months ago (2016-09-22 20:11:00 UTC) #2
Ian Wen
lgtm!
4 years, 3 months ago (2016-09-23 17:29:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359923005/1
4 years, 3 months ago (2016-09-23 17:40:04 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-23 19:47:47 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 19:49:57 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/aaaf17110586e60d241acf02148f9be2dc683015
Cr-Commit-Position: refs/heads/master@{#420702}

Powered by Google App Engine
This is Rietveld 408576698