commit | 9c38f1737782f93f9ef2a8d154830a4b72203635 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Tue Feb 28 01:17:50 2017 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Mar 08 02:07:35 2017 |
tree | 37a7b663044271dfb3a1d2fee873358946ed8699 | |
parent | 1bc1824ef7b9dc50de8c042f0c472c10a7f29b38 [diff] |
shill: cellular: hold Modem objects in unique_ptr instead of shared_ptr In the ModemManager class, the use of shared_ptr to hold Modem objects in a STL map isn't necessary. The code can simply use unique_ptr instead, which makes it easier to deduce the ownership and lifespan of Modem objects from the code. BUG=None TEST=Run unit tests. Change-Id: I7fa7835bfedd0585476a863b8887c28f0a32845b Reviewed-on: https://chromium-review.googlesource.com/450922 Commit-Ready: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>