DescriptionFix for 0-length file problem in extension content verification
The problem is that we were generating zero hashes when there
were no input bytes, when we should have generated one.
To make this fix a little easier to test, I moved the code for
generating hashes of content into a utility funciton in
computed_hashes.{h,cc}. Also, in order to fix things for any
profiles that might have incorrect computed_hashes.json files, I
changed the format of it to add the notion of a version. When the
format or version isn't recognized, the code will return an error
from the Init function, and then the code that uses it elsewhere
in the content verification code will automatically try to
recreate it.
BUG=399251
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287740
Patch Set 1 : ready for review #
Total comments: 16
Patch Set 2 : fixes from review comments #
Messages
Total messages: 6 (0 generated)
|