[Autofill Assistant] Implemented dynamic trigger conditions.
The intended use case is for a single instance of this class to be shared with all trigger scripts. The combined set of selector conditions will be extracted and is then repeatedly evaluated as necessary. Trigger scripts will simply access the cached results, rather than invoke their computation themselves. This keeps the actual element lookup separate from the trigger scripts, and should also be much more efficient for the common use case where two trigger scripts only differ by is_first_time_user or some other static trigger condition. Bug: b/171776026 Change-Id: I48fad77e32abdfbf39f9414d159b31047b6fba32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514422 Commit-Queue: Clemens Arbesser <arbesser@google.com> Reviewed-by:Marian Fechete <marianfe@google.com> Cr-Commit-Position: refs/heads/master@{#823580}
Showing
Please register or sign in to comment