Quota: Remove storage::{CallbackQueue, CallbackQueueMap} in UsageTracker.
storage::CallbackQueue and storage::CallbackQueueMap are non-trivial to understand, as they use fairly involved template machinery. Most importantly, their Run() methods appear to perfectly forward their arguments, but actually end up copying them, in order to be able to pass the same arguments to multiple callbacks. This CL removes the custom types in favor of std::vector and std::map. In return for slightly more lines of code (but not binary size), the code is significantly easier to follow. Change-Id: I563675c4aa6c4e771cd4979712996d878f9a8aa0 Reviewed-on: https://chromium-review.googlesource.com/c/1295593 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#601918}
Showing
Please register or sign in to comment