• Victor Costan's avatar
    Quota: Minor ownership cleanup around ClientUsageTracker. · c7e555ef
    Victor Costan authored
    This CL applies straightforward fixes for the following code health
    issues:
    
    1) ClientUsageTracker's constructor stores a reference to its
       SpecialStoragePolicy parameter, so the parameter should be a
       scoped_refptr, not a raw pointer.
    
    2) SupportsWeakPtr is deprecated in favor of using WeakPtrFactory
       directly.
    
    3) DISALLOW_COPY_AND_ASSIGN() is deprecated in favor of explicitly
       =delete-ing the copy constructor and copy assignment operators.
    
    Change-Id: I1b624abfa4779005401623278eca6584be1dbf23
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281087
    Auto-Submit: Victor Costan <pwnall@chromium.org>
    Reviewed-by: default avatarJarryd Goodman <jarrydg@chromium.org>
    Commit-Queue: Jarryd Goodman <jarrydg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#785987}
    c7e555ef
client_usage_tracker.cc 18.8 KB