update_engine: Revert "Fix delta generator mishandling of unchanged blocks."

CL:246670 introduced an optimization that would not include the blocks
that aren't written by any operation AND didn't change from the previous
image. These blocks are normally free-space, but were also including
data blocks not moved by other operations in very similar images (like
a delta to itself). While introducing this optimization, that CL also
introduced a bug that fails to generate the payload when the old image
is smaller than the new image.

This patch reverts the CL entirely in M42, merging here the CL:249955
that replaced vector<char> to vector<uint8_t>.

BUG=chromium:477876
TEST=sudo env FEATURES=test emerge update_engine
TEST=Ran delta generator from alex-2913.331.0 to alex-6812.75.2

Change-Id: I5a79038cb0137be266aeb0c9a1d4bdf6f5be3a67
Reviewed-on: https://chromium-review.googlesource.com/266067
Reviewed-by: Matthew Yuan <matthewyuan@chromium.org>
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
2 files changed