commit | b2ca77660b714ed0318b1eecaf48d618b75cb49f | [log] [tgz] |
---|---|---|
author | erikchen <erikchen@chromium.org> | Wed Sep 09 08:36:29 2015 +0900 |
committer | Qijiang Fan <fqj@google.com> | Thu Jun 04 19:37:54 2020 +0900 |
tree | 565b08a8b88b878b109632d9044f7380fc42a1fb | |
parent | 467354c0034740bdbbf0bfec80bae9642838e56a [diff] |
base: Fix an inefficiency in base::Pickle that caused extraneous allocations. The Resize() method is supposed to be passed the size of the payload, not including the header. In the copy constructor, it was being passed the size of the payload plus the header. BUG= R=mark@chromium.org Review URL: https://codereview.chromium.org/1327523006 . Cr-Commit-Position: refs/heads/master@{#347826} CrOS-Libchrome-Original-Commit: f9ca8f5f0656036f8062be85a38b0f243bb0df34