Add CanAccessDataForOrigin overload taking url::Origin parameter.

This CL is the first step in adding support for CanAccessDataForOrigin
using the actual url::Origin type. The goal here is to convert a few
calls that have actual origin type to use the new method and provide
better logging for crashes. It will allow us to log precursor info
for origins that fail to pass the security check.

Follow up CLs will add the actual security checks for precursor origins.

Bug: 918565, 919144
Change-Id: I77386d31a675fe7f7518305702babf4e65895bc1
Commit-Queue: Nasko Oskov <>
Reviewed-by: Daniel Cheng <>
Reviewed-by: Ɓukasz Anforowicz <>
Cr-Commit-Position: refs/heads/master@{#631496}
14 files changed