Add defensive code in pickle to preclude realloc of shared header_ memory.

Since I was able to (some how) generate a problem with header_ being
double freed (perhaps, because it was shared in some way??), this change
adds several lines of defensive coding.  The current assignment operator
appears very dangerous, as it allowed Resize to be called when the header_
was not owned by the instance (it was read-only).  I haven't found a path
to cause a problem, but we may as well be defensive.

BUG=17027
BUG=17088
r=CPU
Review URL: http://codereview.chromium.org/160490

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22261 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: fb6ec999c0d049c78b16ca6106d5e45624f94ac8
1 file changed
tree: 3cbdb6c8542e83d5f0fc20b0feb8f345f18b07e0
  1. base/
  2. build/
  3. ipc/
  4. testing/