Chromium Code Reviews
Descriptionpredictors: Remove unknown fields from PrecacheManifest before store it.
PrecacheManifest comes to ResourcePrefetchPredictor from an external source that
could have a different protobuf definition. The definition could contain fields
that are unknown for the current version of Chromium. During deserialization,
unknown fields are not discarded but stored in unknown_fields.
The database has to be wiped out after update of the .proto file so there
is no need to store unknown fields.
BUG=699115
Review-Url: https://codereview.chromium.org/2790633002
Cr-Commit-Position: refs/heads/master@{#461668}
Committed: https://chromium.googlesource.com/chromium/src/+/0559ee094eaf06da395d78b81cae19352ac68f9c
Patch Set 1 #Patch Set 2 : Move implementation into .cc file. #
Messages
Total messages: 12 (8 generated)
|
||||||||||||||||||||||||||||