Use unique_ptr for NetworkState IP and Proxy configs.
IP config only exists for connected networks. Proxy config only exists for networks with a proxy configured. Storing these as a DictionaryValue takes 32 bytes, whereas storing these as a unique_ptr<> only takes 8 bytes. It also makes the symantics of whether or not the property as set a bit more clear. Bug: 651157 Change-Id: I4ab04ada996406bcace85c9038ac35f32b77054d Reviewed-on: https://chromium-review.googlesource.com/1152148 Commit-Queue: Steven Bennetts <stevenjb@chromium.org> Reviewed-by:Toni Barzic <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#578787}
Showing
Please register or sign in to comment