Add event handlers to SWAN trigger.
The trigger now listens to page load events, suspicious site list hits, and a report delay callback. A simple state model reconciles these events and creates reports at the right time. Also some basic unit tests. This is a no-op since the trigger is disabled by default. Next CL will add metrics to the trigger and more tests. Bug: 817377 Change-Id: Ica12e87debf39fb4f2e47a4e92d1f9cf1d40491e Reviewed-on: https://chromium-review.googlesource.com/998532 Commit-Queue: Luke Z <lpz@chromium.org> Reviewed-by:Jialiu Lin <jialiul@chromium.org> Cr-Commit-Position: refs/heads/master@{#549208}
Showing
Please register or sign in to comment