commit | c3fccd95c8daa647dd9a2071b279522376f569a1 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Wed Mar 29 05:28:26 2017 |
committer | chrome-bot <chrome-bot@chromium.org> | Thu Mar 30 21:03:45 2017 |
tree | 0697caf3d06bc051efab535333ac70af74ea7026 | |
parent | b3fa39cec7bfa244f90a0ccbbf744a77a873886c [diff] |
shill: keep {Device,Service}Metrics in unique_ptr instead of shared_ptr Metrics maintains lookup maps of DeviceMetrics and ServiceMetrics instances where the ownership of DeviceMetrics and ServiceMetrics is never transferred. This CL changes Metrics to keep DeviceMetrics and ServiceMetrics in unique_ptr instead of shared_ptr. BUG=None TEST=Run unit tests. Change-Id: I94b2075047b787388c1863a6f232ac33cf9bd8ef Reviewed-on: https://chromium-review.googlesource.com/461256 Commit-Ready: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Eric Caruso <ejcaruso@chromium.org>