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

Issue 2301263004: Add WebAPK installation metrics. (Closed)

Created:
4 years, 3 months ago by Xi Han
Modified:
4 years, 3 months ago
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz, Yaron, F
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WebAPK installation metrics. Records metrics when WebAPK is installed via banner or add-to-homescreen menu, including: install events, installation start types, and user actions. Design doc: https://docs.google.com/document/d/1pQPrHeI4L_jUZ8B8Sh4N0z_yiXwiFuoEhLl3AMXvt-I/edit#heading=h.1ctovw0c1tx BUG=626510 Committed: https://crrev.com/2f4bcfddf49def3cf2f81700922f43390e06a8a5 Cr-Commit-Position: refs/heads/master@{#420433}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update the metrics. #

Total comments: 2

Patch Set 3 : Rebase. #

Total comments: 21

Patch Set 4 : domnickn@'s comments. #

Total comments: 27

Patch Set 5 : Another round of comments. #

Total comments: 16

Patch Set 6 : Renaming. #

Total comments: 2

Patch Set 7 : Nits. #

Total comments: 6

Patch Set 8 : pkotwicz@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -7 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 2 3 4 5 6 7 11 chunks +42 lines, -7 lines 0 comments Download
A chrome/browser/android/webapk/webapk_metrics.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/android/webapk/webapk_metrics.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +76 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (21 generated)
Xi Han
Hi dominickn@ and dfalcantara@: I would like to know your opinions about whether I should ...
4 years, 3 months ago (2016-09-02 20:08:50 UTC) #4
dominickn
One challenge we've found with the app banner metrics is that they're difficult to interpret, ...
4 years, 3 months ago (2016-09-05 07:34:31 UTC) #5
Xi Han
Hi Dominick, I replied your comments on the "webapk installation metrics" doc and updated this ...
4 years, 3 months ago (2016-09-07 20:58:52 UTC) #9
dominickn
This is looking better, but it's still a bit confusing. I'm not sure if the ...
4 years, 3 months ago (2016-09-09 08:14:12 UTC) #15
Xi Han
On 2016/09/09 08:14:12, dominickn wrote: > This is looking better, but it's still a bit ...
4 years, 3 months ago (2016-09-09 14:00:05 UTC) #16
Xi Han
Hi Dominick, PTAL, thanks! https://codereview.chromium.org/2301263004/diff/80001/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/2301263004/diff/80001/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode50 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:50: webapk::TrackInstallEvent(webapk::INSTALL_EVENT_ADDING_DISMISS); On 2016/09/09 08:14:11, dominickn ...
4 years, 3 months ago (2016-09-09 15:37:33 UTC) #19
dominickn
(Apologies for the delay - I need to sit down and work through the callsites ...
4 years, 3 months ago (2016-09-13 08:33:10 UTC) #21
Xi Han
Hi Dominick, do you have a chance to look at this CL?
4 years, 3 months ago (2016-09-16 12:50:53 UTC) #22
dominickn
Sorry for the delay. Finally got to this and I think I understand what's going ...
4 years, 3 months ago (2016-09-19 01:38:39 UTC) #23
Xi Han
PTAL, thanks! https://codereview.chromium.org/2301263004/diff/180001/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/2301263004/diff/180001/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode47 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:47: void TrackWebApkInstallationDismissEvents(banners::InstallState install_state) { On 2016/09/19 01:38:39, ...
4 years, 3 months ago (2016-09-20 18:25:19 UTC) #25
dominickn
Just about there now. I think I've finally figured out the right naming to use ...
4 years, 3 months ago (2016-09-21 06:54:28 UTC) #26
Xi Han
Thanks for all the suggestions about naming. It makes the metrics look much clean now. ...
4 years, 3 months ago (2016-09-21 14:22:09 UTC) #27
dominickn
lgtm % spelling and assuming tests are coming (there's still time to catch and fix ...
4 years, 3 months ago (2016-09-21 21:56:17 UTC) #28
gone
rs lgtm
4 years, 3 months ago (2016-09-21 22:01:59 UTC) #29
Xi Han
+holte@: could you please review histograms.xml, thanks!
4 years, 3 months ago (2016-09-22 02:29:20 UTC) #32
pkotwicz
LGTM with a nit and a few comments for a follow up CL https://codereview.chromium.org/2301263004/diff/260001/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File ...
4 years, 3 months ago (2016-09-22 14:35:25 UTC) #33
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-09-22 18:52:33 UTC) #34
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/2301263004/280001
4 years, 3 months ago (2016-09-22 18:59:59 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:280001)
4 years, 3 months ago (2016-09-22 19:54:08 UTC) #39
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/2f4bcfddf49def3cf2f81700922f43390e06a8a5 Cr-Commit-Position: refs/heads/master@{#420433}
4 years, 3 months ago (2016-09-22 19:59:56 UTC) #41
Xi Han
4 years, 3 months ago (2016-09-22 20:19:10 UTC) #42
Message was sent while issue was closed.
https://codereview.chromium.org/2301263004/diff/260001/chrome/browser/android...
File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
(right):

https://codereview.chromium.org/2301263004/diff/260001/chrome/browser/android...
chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:47: }  //
namespace
On 2016/09/22 14:35:25, pkotwicz wrote:
> Nit: "namespace" -> "anonymous namespace"

Done.

https://codereview.chromium.org/2301263004/diff/260001/chrome/browser/android...
chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:75:
raw_delegate->AcceptWebApk(web_contents);
On 2016/09/22 14:35:25, pkotwicz wrote:
> For a follow up CL:
> - I think you should call Accept() instead of AcceptWebApk() here. That way
you
> do not need to set |has_user_interaction_| in both Accept() and AcceptWebApk()
I had the same thought, but I wasn't sure whether we prefer to make Accept()
public or AcceptWebApk(), since the former has more functionality than the
latter.


> - Determining the install source from |start_install_webapk| feels hacky to
me.
> I would prefer passing webapk::InstallSource to the constructor and using the
> webapk::InstallSource to determine whether to start he install in the
> constructor
Sure, we can do that.

https://codereview.chromium.org/2301263004/diff/260001/chrome/browser/android...
chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:413: //
|OnWebApkInstallFinished|.
On 2016/09/22 14:35:25, pkotwicz wrote:
> Nit: "|OnWebApkInstallFinished|" -> "OnWebApkInstallFinished()"

Done.

Powered by Google App Engine
This is Rietveld 408576698