Properly encode raw digest of a download to make it UTF8 safe
DownloadItem::GetHash() returns raw SHA-256 hash that is not hex encoded. This may cause DCHCEK failure when passing on the DangerousDownloadInfo::ToValue() since the raw hash may not be UTF8. Therefore, this CL HexEncode the raw sha256 first before passing onto the event router. Bug: 846156,796087 Change-Id: Iab51535d7de0b37841851b4887ffca9cf099bd39 Reviewed-on: https://chromium-review.googlesource.com/1079436Reviewed-by:Varun Khaneja <vakh@chromium.org> Commit-Queue: Varun Khaneja <vakh@chromium.org> Commit-Queue: Jialiu Lin <jialiul@chromium.org> Cr-Commit-Position: refs/heads/master@{#563039}
Showing
Please register or sign in to comment