|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by dominickn Modified:
3 years, 11 months ago Reviewers:
benwells CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, chrome-apps-syd-reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionCheck if a PWA is installed before checking the service worker and icon.
This CL reorganises the app banner validity checking to avoid the
asynchronous service worker check and app icon download if the site
being checked should not be permitted to show a banner. This may happen
if the banner was shown and dismissed / ignored recently, or if the PWA
has already been installed.
This requires a slight reorganisation in the code as the validity check
can only be run after the manifest is downloaded, or after native app
data has been fetched if we are checking a native app banner.
BUG=667073
Review-Url: https://codereview.chromium.org/2620613006
Cr-Commit-Position: refs/heads/master@{#443826}
Committed: https://chromium.googlesource.com/chromium/src/+/a8f5781bcfc7c13294895aa12205d81c3e102a82
Patch Set 1 #Patch Set 2 : Add lost metrics back #
Total comments: 4
Patch Set 3 : NOTREACHED #Patch Set 4 : Add missing enum value #
Messages
Total messages: 43 (30 generated)
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
dominickn@chromium.org changed reviewers: + benwells@chromium.org
PTAL, thanks! https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... File chrome/browser/banners/app_banner_manager.cc (left): https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... chrome/browser/banners/app_banner_manager.cc:471: case INSUFFICIENT_ENGAGEMENT: ShouldShowBanner() will never return INSUFFICIENT_ENGAGEMENT any more. https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... File chrome/browser/banners/app_banner_settings_helper.cc (left): https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... chrome/browser/banners/app_banner_settings_helper.cc:250: if (base::CommandLine::ForCurrentProcess()->HasSwitch( This is covered by AppBannerSettingsHelper::HasSufficientEngagement() and AppBannerManager::IsDebugMode().
lgtm with one little thing https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... chrome/browser/banners/app_banner_manager.cc:465: break; Could this break be NOTREACHED()?
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks! https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2620613006/diff/40001/chrome/browser/banners/... chrome/browser/banners/app_banner_manager.cc:465: break; On 2017/01/13 06:04:27, benwells wrote: > Could this break be NOTREACHED()? Done.
The CQ bit was unchecked by dominickn@chromium.org
The CQ bit was checked by dominickn@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from benwells@chromium.org Link to the patchset: https://codereview.chromium.org/2620613006/#ps60001 (title: "NOTREACHED")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by dominickn@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by dominickn@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by dominickn@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by dominickn@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from benwells@chromium.org Link to the patchset: https://codereview.chromium.org/2620613006/#ps80001 (title: "Add missing enum value")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1484531260490210,
"parent_rev": "e4dc09ecc98ecda0724d906241c7c7cc6ef7a88a", "commit_rev":
"a8f5781bcfc7c13294895aa12205d81c3e102a82"}
Message was sent while issue was closed.
Description was changed from ========== Check if a PWA is installed before checking the service worker and icon. This CL reorganises the app banner validity checking to avoid the asynchronous service worker check and app icon download if the site being checked should not be permitted to show a banner. This may happen if the banner was shown and dismissed / ignored recently, or if the PWA has already been installed. This requires a slight reorganisation in the code as the validity check can only be run after the manifest is downloaded, or after native app data has been fetched if we are checking a native app banner. BUG=667073 ========== to ========== Check if a PWA is installed before checking the service worker and icon. This CL reorganises the app banner validity checking to avoid the asynchronous service worker check and app icon download if the site being checked should not be permitted to show a banner. This may happen if the banner was shown and dismissed / ignored recently, or if the PWA has already been installed. This requires a slight reorganisation in the code as the validity check can only be run after the manifest is downloaded, or after native app data has been fetched if we are checking a native app banner. BUG=667073 Review-Url: https://codereview.chromium.org/2620613006 Cr-Commit-Position: refs/heads/master@{#443826} Committed: https://chromium.googlesource.com/chromium/src/+/a8f5781bcfc7c13294895aa12205... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/a8f5781bcfc7c13294895aa12205... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
