Integrate throttling logic into AffiliationBackend.
This CL also changes ownership of the TickClock object used by the AffiliationFetchThrottler, so that it is now owned by the AffiliationBackend. Furthermore, this CL makes the AffiliationBackend no longer rely on using ThreadTaskRunnerHandle to schedule asynchronous operations, but instead take a SingleThreadTaskRunner to use in its constructor. This allows delayed tasks (which are now present) to be posted to the correct task runner in tests too (namely, in AffiliationServiceTests). BUG=437865 Review URL: https://codereview.chromium.org/1008373003 Cr-Commit-Position: refs/heads/master@{#320887}
Showing
This diff is collapsed.
Please register or sign in to comment