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

Issue 2331773002: Take Murmur2 hash of untransformed icon when creating WebAPK part 2/2 (Closed)

Created:
4 years, 3 months ago by pkotwicz
Modified:
4 years, 3 months ago
Reviewers:
dominickn, Xi Han, gone
CC:
chromium-reviews, dominickn+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Take Murmur2 hash of untransformed icon when creating WebAPK part 2/2 This CL makes ManifestUpgradeDetectorFetcher 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=ManifestUpgradeDetectorFetcherTest.* Committed: https://crrev.com/9190e10d578823e6e353d55cf9f3c436d8dc1099 Cr-Commit-Position: refs/heads/master@{#419182}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Merge branch 'master' into icon_hasher2 #

Messages

Total messages: 43 (21 generated)
pkotwicz
Xi can you please take a look?
4 years, 3 months ago (2016-09-11 03:10:23 UTC) #3
Xi Han
Only have some comments on tests, mostly looks good:) https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java (right): https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java#newcode157 chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java:157: ...
4 years, 3 months ago (2016-09-12 19:19:05 UTC) #4
pkotwicz
Xi can you please take a look? https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java (right): https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java#newcode157 chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java:157: public void ...
4 years, 3 months ago (2016-09-12 19:44:00 UTC) #5
Xi Han
lgtm with CL description updated. https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java (right): https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java#newcode157 chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java:157: public void testNoServiceWorkerNotInstallable() throws ...
4 years, 3 months ago (2016-09-12 19:58:50 UTC) #6
pkotwicz
Dominick for OWNERS
4 years, 3 months ago (2016-09-12 20:20:37 UTC) #9
dominickn
https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java (right): https://codereview.chromium.org/2331773002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java#newcode157 chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java:157: public void testNoServiceWorkerNotInstallable() throws Exception { On 2016/09/12 19:58:49, ...
4 years, 3 months ago (2016-09-13 01:09:35 UTC) #10
pkotwicz
Dominick, can you please take another look? https://codereview.chromium.org/2331773002/diff/1/chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc File chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc (right): https://codereview.chromium.org/2331773002/diff/1/chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc#newcode143 chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc:143: icon_hasher_->DownloadAndComputeMurmur2Hash( An ...
4 years, 3 months ago (2016-09-13 22:23:34 UTC) #12
pkotwicz
Dominick, can you please take another look?
4 years, 3 months ago (2016-09-13 22:23:36 UTC) #13
dominickn
lgtm - would appreciate a response to my question before you land. :) https://codereview.chromium.org/2331773002/diff/1/chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc File ...
4 years, 3 months ago (2016-09-14 06:58:43 UTC) #14
pkotwicz
I think that your proposal makes sense. As you said, we will first collect upgrade ...
4 years, 3 months ago (2016-09-14 14:42:33 UTC) #15
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/2331773002/20001
4 years, 3 months ago (2016-09-14 14:44:13 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/259254)
4 years, 3 months ago (2016-09-14 14:52:14 UTC) #20
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/2331773002/20001
4 years, 3 months ago (2016-09-15 00:14:57 UTC) #26
pkotwicz
dfalcantara@ for WebApkUpdateManager.java (I tried to TBR but it seem to no longer work)
4 years, 3 months ago (2016-09-15 01:30:13 UTC) #28
gone
rs lgtm
4 years, 3 months ago (2016-09-15 17:35:50 UTC) #29
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/2331773002/20001
4 years, 3 months ago (2016-09-15 17:41:37 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/298456)
4 years, 3 months ago (2016-09-15 18:49:33 UTC) #33
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/2331773002/20001
4 years, 3 months ago (2016-09-16 01:12:59 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/298838)
4 years, 3 months ago (2016-09-16 01:24:40 UTC) #37
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/2331773002/20001
4 years, 3 months ago (2016-09-16 15:43:00 UTC) #39
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-16 16:21:00 UTC) #41
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 16:23:12 UTC) #43
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9190e10d578823e6e353d55cf9f3c436d8dc1099
Cr-Commit-Position: refs/heads/master@{#419182}

Powered by Google App Engine
This is Rietveld 408576698