Quota: Remove UsageTracker::GetGlobalLimitedUsage().
ClientUsageTracker::GetGlobalLimitedUsage() has a bug, exposed by the tests in https://crrev.com/c/2288502/1. Fortunately, it is only used to implement UsageTracker::GetGlobalLimitedUsage(), which is only used in tests. This CL removes the unused code, and adds UsageTracker unit tests to prevent bugs similar to the one discovered in GetGlobalLimitedUsage(). Bug: 1103426 Change-Id: Ifb44dbce66579ea9afc420fce0ee2482cafa127d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288502 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#786597}
Showing
Please register or sign in to comment