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

Issue 2833313002: Fix the ability to bypass app banner engagement checks. (Closed)

Created:
3 years, 8 months ago by dominickn
Modified:
3 years, 8 months ago
Reviewers:
benwells, Matt Giuca
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.

Description

Fix the ability to bypass app banner engagement checks. Following https://crrev.com/2778983005, the chrome://flags/#bypass-app-banner-engagement-checks flag now does not work unless there is an engagement increase to above the engagement threshold. This is due to an oversight where the case of the flag being turned on could trigger the banner pipeline, but was treated like the on load installability experiment immediately prior to sending the beforeinstallprompt event. This CL fixes the bug by explicitly setting |has_sufficient_engagement_| to true if the bypass flag is enabled (or if 0 engagement is required for the banner to show). BUG=714484 Review-Url: https://codereview.chromium.org/2833313002 Cr-Commit-Position: refs/heads/master@{#466590} Committed: https://chromium.googlesource.com/chromium/src/+/64c866e4041adcf57e6e86438482b2c030151f0d

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M chrome/browser/banners/app_banner_manager.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
dominickn
PTAL - this will need a merge to M59.
3 years, 8 months ago (2017-04-24 03:11:56 UTC) #4
Matt Giuca
drive-by lgtm with comment nits. https://codereview.chromium.org/2833313002/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2833313002/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode396 chrome/browser/banners/app_banner_manager.cc:396: // banner, we can ...
3 years, 8 months ago (2017-04-24 03:34:30 UTC) #6
dominickn
Thanks! https://codereview.chromium.org/2833313002/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2833313002/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode396 chrome/browser/banners/app_banner_manager.cc:396: // banner, we can manually set |has_sufficient_engagement_| to ...
3 years, 8 months ago (2017-04-24 03:42:34 UTC) #8
benwells
lgtm
3 years, 8 months ago (2017-04-24 06:00:02 UTC) #12
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/2833313002/20001
3 years, 8 months ago (2017-04-24 06:02:05 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 06:06:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/64c866e4041adcf57e6e86438482...

Powered by Google App Engine
This is Rietveld 408576698