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

Issue 2122783002: Add metrics for app banner preventDefault() and prompt(). (Closed)

Created:
4 years, 5 months ago by dominickn
Modified:
4 years, 5 months ago
Reviewers:
benwells, Ilya Sherman
CC:
chromium-reviews, dominickn+watch_chromium.org, asvitkine+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metrics for app banner preventDefault() and prompt(). The beforeinstallprompt event signals an imminent app install banner for a page. This CL adds UMA stats for preventDefault() being called on the event (stopping the banner from appearing), and for prompt() being called on the event (making the banner appear subsequent to a preventDefault()). BUG=625716 Committed: https://crrev.com/4f6382c45e105322038b6fa1885cd1f479ef5ff8 Cr-Commit-Position: refs/heads/master@{#404039}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address reviewer comments #

Patch Set 3 : Splitting out into a new metric #

Total comments: 2

Patch Set 4 : Use NO_ACTION #

Total comments: 6

Patch Set 5 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -2 lines) Patch
M chrome/browser/banners/app_banner_data_fetcher.cc View 1 2 3 6 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_metrics.h View 1 2 3 4 5 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_metrics.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
dominickn
PTAL, thanks!
4 years, 5 months ago (2016-07-05 02:49:20 UTC) #2
benwells
https://codereview.chromium.org/2122783002/diff/1/chrome/browser/banners/app_banner_data_fetcher.cc File chrome/browser/banners/app_banner_data_fetcher.cc (right): https://codereview.chromium.org/2122783002/diff/1/chrome/browser/banners/app_banner_data_fetcher.cc#newcode221 chrome/browser/banners/app_banner_data_fetcher.cc:221: page_requested_prompt_ = true; Should we also track something here? ...
4 years, 5 months ago (2016-07-05 02:56:20 UTC) #3
dominickn
https://codereview.chromium.org/2122783002/diff/1/chrome/browser/banners/app_banner_data_fetcher.cc File chrome/browser/banners/app_banner_data_fetcher.cc (right): https://codereview.chromium.org/2122783002/diff/1/chrome/browser/banners/app_banner_data_fetcher.cc#newcode221 chrome/browser/banners/app_banner_data_fetcher.cc:221: page_requested_prompt_ = true; On 2016/07/05 02:56:20, benwells wrote: > ...
4 years, 5 months ago (2016-07-05 03:15:33 UTC) #4
dominickn
Revised as per in-person discussion. PTAL, thanks!
4 years, 5 months ago (2016-07-05 04:57:57 UTC) #5
benwells
lgtm. Just to be clear - the number of times the banner is shown and ...
4 years, 5 months ago (2016-07-05 05:34:49 UTC) #6
benwells
Hang on, there is a NO_ACTION value which doesn't appear to be used - is ...
4 years, 5 months ago (2016-07-05 05:36:18 UTC) #7
dominickn
Dang, today has been a poor day. :( Latest patchset actually properly uses the NO_ACTION ...
4 years, 5 months ago (2016-07-05 06:00:09 UTC) #8
benwells
lgtm :)
4 years, 5 months ago (2016-07-05 06:47:43 UTC) #10
Ilya Sherman
LGTM % nits https://codereview.chromium.org/2122783002/diff/80001/chrome/browser/banners/app_banner_metrics.h File chrome/browser/banners/app_banner_metrics.h (right): https://codereview.chromium.org/2122783002/diff/80001/chrome/browser/banners/app_banner_metrics.h#newcode60 chrome/browser/banners/app_banner_metrics.h:60: enum BeforeInstallEvent { nit: Please document ...
4 years, 5 months ago (2016-07-06 23:15:54 UTC) #11
dominickn
Thanks! https://codereview.chromium.org/2122783002/diff/80001/chrome/browser/banners/app_banner_metrics.h File chrome/browser/banners/app_banner_metrics.h (right): https://codereview.chromium.org/2122783002/diff/80001/chrome/browser/banners/app_banner_metrics.h#newcode60 chrome/browser/banners/app_banner_metrics.h:60: enum BeforeInstallEvent { On 2016/07/06 23:15:53, Ilya Sherman ...
4 years, 5 months ago (2016-07-07 00:16:02 UTC) #13
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/2122783002/100001
4 years, 5 months ago (2016-07-07 00:16:53 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-07 02:41:55 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 02:42:16 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 02:43:57 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4f6382c45e105322038b6fa1885cd1f479ef5ff8
Cr-Commit-Position: refs/heads/master@{#404039}

Powered by Google App Engine
This is Rietveld 408576698