Add Backend* to HttpCacheDataRemover.
Instead of creating a unique_ptr<Backend*>, passing around ownership, and having to worry about lifetime, just use a class member, since the callback lifetime is already tied to the lifetime of the HttpCacheDataRemover instance. This also enables changing callback type from Repeating to Once. Bug: 807724 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: Iae84f3729ed077c0599f3133cf129624bc02c1d7 Reviewed-on: https://chromium-review.googlesource.com/1093056Reviewed-by:Helen Li <xunjieli@chromium.org> Commit-Queue: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#566798}
Showing
Please register or sign in to comment