Fix serialization bug in ShoppingPersistedTabData
It was found that after deserialization, fields in ShoppingPersistedTabData were set to their default values, despite the deseralization being performed correctly. I believe the reason is fields in the child can't be set in the parent constructor (although interestingly the same thing didn't happen in CriticalPersistedTabData). The problem can be solved in ShoppingPersistedTabData by deserializing in the child - not the parent. I wrote an identical unit test for CriticalPersistedTabData to guard against this popping up in the future. Bug: 1160316 Change-Id: Id7d2d257448b975fd2780ae61a19d311892ecb7c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598656 Commit-Queue: David Maunder <davidjm@chromium.org> Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#839129}
Showing
Please register or sign in to comment