Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Issue 2231843003: Take Murmur2 hash of untransformed icon when creating WebAPK part 1 (Closed)

Created:
4 years, 4 months ago by pkotwicz
Modified:
4 years, 4 months ago
Reviewers:
Robert Sesek, Yaron
CC:
chromium-reviews, Xi Han
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Take 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -89 lines) Patch
A chrome/browser/android/webapk/webapk_icon_hasher.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/android/webapk/webapk_icon_hasher.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/android/webapk/webapk_icon_hasher_unittest.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.h View 1 5 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.cc View 1 2 3 4 9 chunks +92 lines, -62 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer_unittest.cc View 1 2 3 11 chunks +58 lines, -23 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
pkotwicz
Yaron, can you please take a look? I still need to make ManifestUpgradeDetector use the ...
4 years, 4 months ago (2016-08-11 23:14:06 UTC) #8
Yaron
https://codereview.chromium.org/2231843003/diff/60001/chrome/browser/android/webapk/webapk_installer.cc File chrome/browser/android/webapk/webapk_installer.cc (right): https://codereview.chromium.org/2231843003/diff/60001/chrome/browser/android/webapk/webapk_installer.cc#newcode154 chrome/browser/android/webapk/webapk_installer.cc:154: // the bitmap). The WebAPK server crawls the internet ...
4 years, 4 months ago (2016-08-12 21:24:06 UTC) #9
pkotwicz
Yaron can you please take another look? https://codereview.chromium.org/2231843003/diff/60001/chrome/browser/android/webapk/webapk_installer.cc File chrome/browser/android/webapk/webapk_installer.cc (right): https://codereview.chromium.org/2231843003/diff/60001/chrome/browser/android/webapk/webapk_installer.cc#newcode160 chrome/browser/android/webapk/webapk_installer.cc:160: // should ...
4 years, 4 months ago (2016-08-15 17:19:26 UTC) #12
Yaron
lgtm
4 years, 4 months ago (2016-08-16 00:35:23 UTC) #13
pkotwicz
Adding Robert to look at webapk_icon_hasher.cc from a security stand point. This CL takes gets ...
4 years, 4 months ago (2016-08-16 18:49:28 UTC) #17
Robert Sesek
Yes, this is OK from a security perspective. I'd also encourage you to write a ...
4 years, 4 months ago (2016-08-16 19:55:57 UTC) #18
pkotwicz
Robert, can you please take another look? I have added unit tests for webapk_icon_hasher.cc as ...
4 years, 4 months ago (2016-08-17 01:16:46 UTC) #22
Robert Sesek
LGTM w/ a nit https://codereview.chromium.org/2231843003/diff/220001/chrome/browser/android/webapk/webapk_icon_hasher_unittest.cc File chrome/browser/android/webapk/webapk_icon_hasher_unittest.cc (right): https://codereview.chromium.org/2231843003/diff/220001/chrome/browser/android/webapk/webapk_icon_hasher_unittest.cc#newcode26 chrome/browser/android/webapk/webapk_icon_hasher_unittest.cc:26: const char* kIconUrl = "/android/google.png"; ...
4 years, 4 months ago (2016-08-17 16:06:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2231843003/240001
4 years, 4 months ago (2016-08-17 17:31:28 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:240001)
4 years, 4 months ago (2016-08-17 18:14:00 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 18:23:50 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ccf35305af4fba3e1cd73bb9ce032fe9063d0eea
Cr-Commit-Position: refs/heads/master@{#412586}

Powered by Google App Engine
This is Rietveld 408576698