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
3 files changed
tree: 565b08a8b88b878b109632d9044f7380fc42a1fb
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/