[Safe Browsing] Remove signin/sync deps from PolicyEngine
This CL abstracts RealTimePolicyEngine's dependence on signin and sync for determining whether safe browsing access token fetches are supported, instead having it take in a callback supplied by its client. We place the abstracted functionality in //components/safe_browsing/core/browser/sync along with adjusted versions of its unittests. The purpose of this abstraction is to enable this code to be reused by WebLayer, which does not use signin or sync. This CL binds the callback in RealTimeURLLookupService, but a followup will do the binding in the embedder of the SafeBrowsing component. Bug: 1080748 Change-Id: I7bf0d3d15eae173b107f95cdc1616e08e0f69eae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616352Reviewed-by:Xinghui Lu <xinghuilu@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#842433}
Showing
Please register or sign in to comment