• Douglas Creager's avatar
    Reporting: Don't assume report and policy have same origin · e13028c5
    Douglas Creager authored
    When processing a report, we can't assume that the report's origin
    matches the origin that the corresponding policy belongs to.  If the
    policy uses include_subdomains, then it might be used for reports for
    any subdomain of the policy's origin.  We had a couple of places where
    we did assume they were the same, and used a DCHECK to verify this.
    That caused segfaults whenever we tried to process a subdomain report.
    
    Bug: 854248
    Change-Id: I251d82664c7deee2293144ceed199e084795152c
    Reviewed-on: https://chromium-review.googlesource.com/1106304Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
    Commit-Queue: Douglas Creager <dcreager@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#571946}
    e13028c5
reporting_endpoint_manager.h 2.21 KB