Blob: Call callback with an empty vector when the size of side data is zero
disk_cache::Entry::GetDataSize() can return zero. If the size of side data is zero, it doesn't make sense to try to read side data. Call ReadSideDataCallback with an empty vector when the size is zero. I don't expect this improves performance in general though. Change-Id: I07237a1b41a4b95349a430806122270084f8b55d Reviewed-on: https://chromium-review.googlesource.com/c/1307029Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Daniel Murphy <dmurph@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#605286}
Showing
Please register or sign in to comment