• Mustafa Emre Acer's avatar
    [SB Delayed Warnings] Only handle phishing pages · 241554a3
    Mustafa Emre Acer authored
    The delayed warnings experiment should only handle phishing pages. It
    doesn't make sense to run it for other threat types, as the goal is to
    understand the effect of different URL display modes to phishing
    threats.
    
    This CL also fixes a DCHECK when there are multiple unsafe resources in
    the current WebContents. The old code assumed that the method to create
    the user interaction observer could only be called once per WebContents.
    In reality, it's called for each unsafe resource, so this CL ignores
    subsequent calls.
    
    Bug: 1057157
    Change-Id: Ifb87dae060c2a08c37aeef55835c318ba7bcdfec
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2130626
    Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
    Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
    Reviewed-by: default avatarXinghui Lu <xinghuilu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#756470}
    241554a3
user_interaction_observer.cc 6.37 KB