LOG(ERROR) << "GlicSelectionObserver: closing widget in UpdateSelectionState (panel_showing)";Remove
if (!ShouldShowSelectionWidget()) {This all looks like it does un-necessary code when we are in the updates only mode... We now request teh text bounds, create the selection widget, etc. Did you test the updates only mode?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for the review! Comments addressed. Look ok?
LOG(ERROR) << "GlicSelectionObserver: closing widget in UpdateSelectionState (panel_showing)";Gary KlassenRemove
Done
This all looks like it does un-necessary code when we are in the updates only mode... We now request teh text bounds, create the selection widget, etc. Did you test the updates only mode?
Thanks! UpdateSelectionState() was guarding calls to ShowSelectionAffordance() with !updates_only, and we have unit tests covering updates_only mode (UpdateSelectionStatePanelShowingNoWidget / UpdateSelectionStatePanelShowingUpdatesOnly). To make the contract completely bulletproof and self-documenting, early returns have been added at the top of ShowSelectionAffordance() and ShouldShowSelectionWidget() so updates_only mode is guaranteed to never compute text bounds or create widget UI.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (features::kGlicSelectionPromptUpdatesOnly.Get()) {This still does not look correct. This seems to be missing the invoke to show the chip in the side panel for "updates only" feature.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const std::u16string& selected_text)bad rebase?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for the review and sorry for the churn and confusion (there were mixed changes from the stack). This has now been cleaned up and should now be better ready for review.
const std::u16string& selected_text)Gary Klassenbad rebase?
Done
if (features::kGlicSelectionPromptUpdatesOnly.Get()) {This still does not look correct. This seems to be missing the invoke to show the chip in the side panel for "updates only" feature.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |