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

Issue 2632243004: Don't download identical APKs on update. (Closed)

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

Description

Don't download identical APKs on update. When we update a certified WebAPK whose Clank-fetched content no longer matches its Harpoon-fetched content, Clank will always think the WebAPK is out of date, and check for a new update from the WAM at every opportunity. To mitigate this, server returns an empty download URL in the Response proto. It tells the client _not_ to download the APK from the gstatic URL that the server provides, because it will be exactly identical to the one already installed on the device. This will save the bulk of the bandwidth usage for unnecessary update. BUG=680131 Review-Url: https://codereview.chromium.org/2632243004 Cr-Commit-Position: refs/heads/master@{#449688} Committed: https://chromium.googlesource.com/chromium/src/+/345600684d7a9a0a31298d165e3e7d7deab34076

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nits. #

Total comments: 4

Patch Set 3 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M chrome/browser/android/webapk/webapk.proto View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/android/webapk/webapk_installer.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer_unittest.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Xi Han
Hi Peter, could you please take a look? Thanks!
3 years, 11 months ago (2017-01-16 21:42:08 UTC) #2
pkotwicz
Your CL looks good. Can you also implement exponential backoff in this CL? http://crbug.com/680128 https://codereview.chromium.org/2632243004/diff/1/chrome/browser/android/webapk/webapk_installer.cc ...
3 years, 11 months ago (2017-01-17 02:37:10 UTC) #3
Xi Han
Hi Peter, I will implement the other bug in another CL. PTAL, thanks! https://codereview.chromium.org/2632243004/diff/1/chrome/browser/android/webapk/webapk_installer.cc File ...
3 years, 11 months ago (2017-01-17 16:45:12 UTC) #4
Xi Han
Hi Peter, do you have any concern of this CL?
3 years, 10 months ago (2017-01-27 20:12:59 UTC) #5
pkotwicz
I am holding off on reviewing this CL till we handle all of the launch ...
3 years, 10 months ago (2017-01-27 22:56:00 UTC) #6
pkotwicz
LGTM with nits Off to Dominick! Dominick, this CL does the setup for https://codereview.chromium.org/2641973003/ https://codereview.chromium.org/2632243004/diff/20001/chrome/browser/android/webapk/webapk.proto ...
3 years, 10 months ago (2017-02-10 02:50:31 UTC) #8
dominickn
lgtm Out of curiosity, WebAPKs are still updated by Chrome even if they're installed by ...
3 years, 10 months ago (2017-02-10 03:00:11 UTC) #9
Xi Han
> Out of curiosity, WebAPKs are still updated by Chrome even if they're installed > ...
3 years, 10 months ago (2017-02-10 18:21:09 UTC) #10
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/2632243004/40001
3 years, 10 months ago (2017-02-10 18:28:40 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 19:30:21 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/345600684d7a9a0a31298d165e3e...

Powered by Google App Engine
This is Rietveld 408576698