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

Issue 2791923005: Fails InstallableManager if a selected badge icon cannot be fetched. (Closed)

Created:
3 years, 8 months ago by F
Modified:
3 years, 8 months ago
Reviewers:
dominickn, pkotwicz
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fails InstallableManager if a selected badge icon cannot be fetched. This CL makes InstallableManager fail when an icon is selected as the badge icon yet cannot be fetched. For an icon to be selected as a badge icon, the web developer needs to explicitly add manifest.icon.purpose.BADGE to the icon's purpose field. Providing a badge icon is still optional; however, the WebAPK installation will not proceed if the provided badge icon cannot be downloaded. This CL gets rid of Clank's manifest protocol buffer's dependency on the network condition. BUG=649771 Review-Url: https://codereview.chromium.org/2791923005 Cr-Commit-Position: refs/heads/master@{#464452} Committed: https://chromium.googlesource.com/chromium/src/+/6f3ee4aef9982d1c5579bd78ac12895ffc161f45

Patch Set 1 #

Patch Set 2 : Correct the error of making badge icon required #

Total comments: 4

Patch Set 3 : Addressing comments #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -5 lines) Patch
M chrome/browser/installable/installable_logging.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/installable/installable_manager.cc View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/installable/installable_manager_browsertest.cc View 1 2 3 3 chunks +27 lines, -2 lines 0 comments Download
A chrome/test/data/banners/manifest_bad_badge.json View 1 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (32 generated)
F
Hi Dominick, PTAL. Thanks!
3 years, 8 months ago (2017-04-03 18:10:31 UTC) #5
dominickn
Does this mean that when WebAPKs are enabled, sites *must* specify a badge icon to ...
3 years, 8 months ago (2017-04-03 23:23:39 UTC) #9
F
Sorry for uploading a CL that does not do what the CL description says. I've ...
3 years, 8 months ago (2017-04-04 18:23:36 UTC) #12
dominickn
Pretty close now. :) https://codereview.chromium.org/2791923005/diff/20001/chrome/browser/installable/installable_manager.cc File chrome/browser/installable/installable_manager.cc (right): https://codereview.chromium.org/2791923005/diff/20001/chrome/browser/installable/installable_manager.cc#newcode183 chrome/browser/installable/installable_manager.cc:183: return icon.error; Can you edit ...
3 years, 8 months ago (2017-04-05 02:57:24 UTC) #15
F
Thanks Dominick! PTAL https://codereview.chromium.org/2791923005/diff/20001/chrome/browser/installable/installable_manager.cc File chrome/browser/installable/installable_manager.cc (right): https://codereview.chromium.org/2791923005/diff/20001/chrome/browser/installable/installable_manager.cc#newcode183 chrome/browser/installable/installable_manager.cc:183: return icon.error; On 2017/04/05 02:57:24, dominickn ...
3 years, 8 months ago (2017-04-06 15:35:35 UTC) #18
dominickn
lgtm, thanks! https://codereview.chromium.org/2791923005/diff/40001/chrome/browser/installable/installable_logging.cc File chrome/browser/installable/installable_logging.cc (right): https://codereview.chromium.org/2791923005/diff/40001/chrome/browser/installable/installable_logging.cc#newcode53 chrome/browser/installable/installable_logging.cc:53: "could not download a required icon from ...
3 years, 8 months ago (2017-04-07 00:02:34 UTC) #25
F
Thanks Dominick! PTAL https://codereview.chromium.org/2791923005/diff/40001/chrome/browser/installable/installable_logging.cc File chrome/browser/installable/installable_logging.cc (right): https://codereview.chromium.org/2791923005/diff/40001/chrome/browser/installable/installable_logging.cc#newcode53 chrome/browser/installable/installable_logging.cc:53: "could not download a required icon ...
3 years, 8 months ago (2017-04-07 14:43:11 UTC) #27
dominickn
still lgtm
3 years, 8 months ago (2017-04-07 23:01:54 UTC) #31
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/2791923005/80001
3 years, 8 months ago (2017-04-08 15:07:12 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/267754)
3 years, 8 months ago (2017-04-08 18:01:11 UTC) #35
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/2791923005/80001
3 years, 8 months ago (2017-04-13 16:54:50 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 17:28:31 UTC) #44
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/6f3ee4aef9982d1c5579bd78ac12...

Powered by Google App Engine
This is Rietveld 408576698