DescriptionTake Murmur2 hash of untransformed icon when creating WebAPK
This CL makes WebApkInstaller take the Murmur2 hash of the bitmap at the icon
URL prior to any transformations being applied to the bitmap (such as
encoding/decoding the bitmap). The icon hash is used to determine whether the
icon that the user sees matches the icon of a WebAPK that the server generated
for another user.
The icon could be dynamically generated and:
- use the same icon URL for all users
- be visually different for each user
If the hashes match the server can vend the WebAPK that it
previously generated to other users. Vending previously generated WebAPKs is
faster than creating a new WebAPK for each "create WebAPK" request.
BUG=624059
TEST=WebApkIconHasherTest
Committed: https://crrev.com/ccf35305af4fba3e1cd73bb9ce032fe9063d0eea
Cr-Commit-Position: refs/heads/master@{#412586}
Patch Set 1 : Merge branch 'webapk_builder_impl2_directory' into webapk_builder_impl2_hash #
Total comments: 3
Patch Set 2 : Merge branch 'master' into webapk_builder_impl2_hash #Patch Set 3 : Merge branch 'master' into webapk_builder_impl2_hash #
Total comments: 2
Patch Set 4 : Merge branch 'master' into webapk_builder_impl2_hash #
Total comments: 1
Patch Set 5 : Merge branch 'master' into webapk_builder_impl2_hash #
Messages
Total messages: 30 (19 generated)
|