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

Issue 2473243002: Ensure WebAPKs installed from the menu do not pollute banner statistics. (Closed)

Created:
4 years, 1 month ago by dominickn
Modified:
4 years, 1 month ago
Reviewers:
pkotwicz
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.

Description

Ensure WebAPKs installed from the menu do not pollute banner statistics. Currently, WebAPKs reuse the AppBannerInfoBarDelegate, even if they are added via the Add to Homescreen menu item. This means they incorrectly send app banner metrics when they have not been added from a banner triggering. This CL guards all app banner metrics callsites in WebAPK codepaths in AppBannerInfoBarDelegate to ensure that app banner stats are not polluted. BUG=651894 Committed: https://crrev.com/b84e58a2540e004466d0215a0efe4b42b5c3c298 Cr-Commit-Position: refs/heads/master@{#429770}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -14 lines) Patch
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 5 chunks +24 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
dominickn
Peter: PTAL, thanks
4 years, 1 month ago (2016-11-04 00:59:41 UTC) #3
pkotwicz
LGTM with nit. Thank you for cleaning this up! https://codereview.chromium.org/2473243002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2473243002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode327 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:327: ...
4 years, 1 month ago (2016-11-04 01:34:33 UTC) #5
dominickn
Thanks! https://codereview.chromium.org/2473243002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2473243002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode327 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:327: On 2016/11/04 01:34:33, pkotwicz wrote: > Nit: Move ...
4 years, 1 month ago (2016-11-04 01:44:51 UTC) #9
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/2473243002/20001
4 years, 1 month ago (2016-11-04 02:26:32 UTC) #15
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 1 month ago (2016-11-04 02:34:08 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 02:34:29 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b84e58a2540e004466d0215a0efe4b42b5c3c298
Cr-Commit-Position: refs/heads/master@{#429770}

Powered by Google App Engine
This is Rietveld 408576698