Fix memory leak in Sync FakeServerEntity
commitf89c3a34a93ae0bccf69046febe03c61b14f932f
authorpvalenzuela <pvalenzuela@chromium.org>
Thu, 25 Sep 2014 17:34:02 +0000 (25 10:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 25 Sep 2014 17:34:16 +0000 (25 17:34 +0000)
treedd09c0b697bb59fb9a30171ea2d5bf36bbc98cbd
parentaa5362514e13e46823d1b1e128fd1376c6d656b4
Fix memory leak in Sync FakeServerEntity

SyncEntity protos in fake_server.cc are now populated by passing a
pointer to FakeServerEntity.SerializeAsProto. Previously,
SerializeAsProto returned a newly-created proto that was never deleted.

BUG=NONE

Review URL: https://codereview.chromium.org/600083003

Cr-Commit-Position: refs/heads/master@{#296733}
sync/test/fake_server/bookmark_entity.cc
sync/test/fake_server/bookmark_entity.h
sync/test/fake_server/fake_server.cc
sync/test/fake_server/fake_server_entity.h
sync/test/fake_server/permanent_entity.cc
sync/test/fake_server/permanent_entity.h
sync/test/fake_server/tombstone_entity.cc
sync/test/fake_server/tombstone_entity.h
sync/test/fake_server/unique_client_entity.cc
sync/test/fake_server/unique_client_entity.h