Make UserConsentView share logic from QuickAnswersPreTargetHandler
This CL makes quick_answers::UserConsentView share logic with QuickAnswersView via a common pre-target handler. This change also proposes handling context-menu, Quick Answers views are companion-views of which, in a more robust way by dismissing it whenever these views are closed. Corner-case scenario where the menu should not be dismissed (for example, QuickAnswersView should be displayed after acknowledging and dismissing UserConsentView) is handled by the pre-target handler providing a setter. Bug: b:151111996 Test: Tested on Atlas test device. Change-Id: I94fc256ca329787188315df8e71457e4530f4281 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2195338Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Abhijeet Singh <siabhijeet@google.com> Cr-Commit-Position: refs/heads/master@{#768505}
Showing
Please register or sign in to comment