|
|
Chromium Code Reviews|
Created:
3 years, 6 months ago by benwells Modified:
3 years, 6 months ago Reviewers:
dominickn CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, chrome-apps-syd-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionStart banner pipeline immediately after navigating, if enough engagement
Previously if a site had already earned enough engagement and was
navigated to, the banner pipeline would not be triggered until further
engagement was earned. With this change it will trigger immediately.
This could result in slight changes of behavior if sites are holding on
to the beforeinstallprompt event and using it to enable certain parts
of the UI (for example a button).
This change also tweaks some conditions in tests for changes in the
underlying state machine.
BUG=729919
Review-Url: https://codereview.chromium.org/2957523003
Cr-Commit-Position: refs/heads/master@{#482115}
Committed: https://chromium.googlesource.com/chromium/src/+/8d9f82995bc634440aed9ec773861dc376b08e70
Patch Set 1 #
Total comments: 4
Patch Set 2 : Feedback #Patch Set 3 : Simpler per Dom's suggestion #
Messages
Total messages: 29 (16 generated)
The CQ bit was checked by benwells@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...
Description was changed from ========== Start banner pipeline immediately after navigating, if enough engagement Previously if a site had already earned enough engagement and was navigated to, the banner pipeline would not be triggered until further engagement was earned. With this change it will trigger immediately. This could result in slight changes of behavior if sites are holding on to the beforeinstallprompt event and using it to enable certain parts of the UI (for example a button). BUG=729919 ========== to ========== Start banner pipeline immediately after navigating, if enough engagement Previously if a site had already earned enough engagement and was navigated to, the banner pipeline would not be triggered until further engagement was earned. With this change it will trigger immediately. This could result in slight changes of behavior if sites are holding on to the beforeinstallprompt event and using it to enable certain parts of the UI (for example a button). This change also tweaks some conditions in tests for changes in the underlying state machine. BUG=729919 ==========
benwells@chromium.org changed reviewers: + dominickn@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... chrome/browser/banners/app_banner_manager.cc:437: SiteEngagementService::Get( This is called quite a lot. Instead, just have a site_engagement_service_ member (we already fetch it in the constructor for this object to set up the observer anyway).
https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... chrome/browser/banners/app_banner_manager.cc:437: SiteEngagementService::Get( On 2017/06/23 04:55:35, dominickn wrote: > This is called quite a lot. Instead, just have a site_engagement_service_ member > (we already fetch it in the constructor for this object to set up the observer > anyway). That might also let you combine this if statement with the one above.
https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... chrome/browser/banners/app_banner_manager.cc:437: SiteEngagementService::Get( On 2017/06/23 04:57:44, dominickn wrote: > On 2017/06/23 04:55:35, dominickn wrote: > > This is called quite a lot. Instead, just have a site_engagement_service_ > member > > (we already fetch it in the constructor for this object to set up the observer > > anyway). > > That might also let you combine this if statement with the one above. Done. https://codereview.chromium.org/2957523003/diff/1/chrome/browser/banners/app_... chrome/browser/banners/app_banner_manager.cc:437: SiteEngagementService::Get( On 2017/06/23 04:55:35, dominickn wrote: > This is called quite a lot. Instead, just have a site_engagement_service_ member > (we already fetch it in the constructor for this object to set up the observer > anyway). Done.
lgtm, thanks!
The CQ bit was checked by benwells@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_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
The CQ bit was checked by benwells@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_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
The CQ bit was checked by benwells@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dominickn@chromium.org Link to the patchset: https://codereview.chromium.org/2957523003/#ps40001 (title: "Simpler per Dom's suggestion")
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: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by benwells@chromium.org
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": 40001, "attempt_start_ts": 1498267372481960,
"parent_rev": "c0107a9fa095726283fe62a50133ec27a9acf7fd", "commit_rev":
"8d9f82995bc634440aed9ec773861dc376b08e70"}
Message was sent while issue was closed.
Description was changed from ========== Start banner pipeline immediately after navigating, if enough engagement Previously if a site had already earned enough engagement and was navigated to, the banner pipeline would not be triggered until further engagement was earned. With this change it will trigger immediately. This could result in slight changes of behavior if sites are holding on to the beforeinstallprompt event and using it to enable certain parts of the UI (for example a button). This change also tweaks some conditions in tests for changes in the underlying state machine. BUG=729919 ========== to ========== Start banner pipeline immediately after navigating, if enough engagement Previously if a site had already earned enough engagement and was navigated to, the banner pipeline would not be triggered until further engagement was earned. With this change it will trigger immediately. This could result in slight changes of behavior if sites are holding on to the beforeinstallprompt event and using it to enable certain parts of the UI (for example a button). This change also tweaks some conditions in tests for changes in the underlying state machine. BUG=729919 Review-Url: https://codereview.chromium.org/2957523003 Cr-Commit-Position: refs/heads/master@{#482115} Committed: https://chromium.googlesource.com/chromium/src/+/8d9f82995bc634440aed9ec77386... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/8d9f82995bc634440aed9ec77386... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
