• Adam Rice's avatar
    Add UMA metrics for WebSocket SafeBrowsing lookups · 709344e6
    Adam Rice authored
    Add the following metrics for WebSocket SafeBrowsing lookups:
    
    * SafeBrowsing.WebSocket.Result is recorded for every WebSocket handshake that
      is checked.
    * - SafeBrowsing.WebSocket.Elapsed.Safe
      - SafeBrowsing.WebSocket.Elapsed.Blocked
      - SafeBrowsing.WebSocket.Elapsed.Abandoned
      Record the time in milliseconds spent performing the SafeBrowsing lookup,
      including time spent on the interstitial page if applicable, broken down by
      result.
    
    Because clicking "Back to safety" on the interstitial results in navigating away
    from the page, it is recorded as "Abandoned", not "Blocked" as might be
    expected. I haven't found a circumstance in which "Blocked" is recorded.
    
    Tested manually with about:histograms.
    
    Bug: 644744
    Change-Id: I4ec902e122f48482c6c4d54537ce8035bbac92fc
    Reviewed-on: https://chromium-review.googlesource.com/569942Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
    Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
    Commit-Queue: Adam Rice <ricea@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#488107}
    709344e6
enums.xml 1.68 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.