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

Issue 1727823002: [Herb] Add metrics to track button usage (Closed)

Created:
4 years, 10 months ago by gone
Modified:
4 years, 10 months ago
Reviewers:
Ted C, Ian Wen, Ilya Sherman
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Herb] Add metrics * Adds metrics for the system back button, the return button, and the Open in Chrome button. The SystemBack action records whether back was hit, while a histogram tracks specifically what happened when this happened. * Adds a histogram that tracks why ChromeTabbedActivity was stopped. * Edits the back pressed logic in ChromeTabbedActivity#handleBackPressed() so that it's possible to return false if the action really, really isn't handled. * Recombines the two handleBackPressed methods. They were separated initially because the system back behavior required it for one of the prototypes but that isn't the case anymore. BUG=582539, 588809 Committed: https://crrev.com/480e2efb79e326b1bd940a795eda5f62711bfc5e Cr-Commit-Position: refs/heads/master@{#377803}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed as per offline discussion #

Patch Set 3 : Rebasing #

Total comments: 18

Patch Set 4 : Comments, cleaning up the code paths #

Patch Set 5 : Cleaning #

Total comments: 6

Patch Set 6 : Comments #

Total comments: 10

Patch Set 7 : Comments, deprecating #

Patch Set 8 : Histogram #

Patch Set 9 : Hard-coded histogram name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -51 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 2 3 4 5 6 7 8 11 chunks +84 lines, -49 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java View 1 2 3 4 5 6 7 8 1 chunk +90 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 3 chunks +39 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +56 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (15 generated)
gone
Can you guys take a pass on this? I've got a bunch of actions that ...
4 years, 10 months ago (2016-02-23 21:42:50 UTC) #2
Ted C
https://codereview.chromium.org/1727823002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java (right): https://codereview.chromium.org/1727823002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java#newcode1103 chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java:1103: return true; since we always return true, I think ...
4 years, 10 months ago (2016-02-23 23:00:36 UTC) #3
gone
https://chromiumcodereview.appspot.com/1727823002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java (right): https://chromiumcodereview.appspot.com/1727823002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java#newcode1103 chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java:1103: return true; On 2016/02/23 23:00:36, Ted C wrote: > ...
4 years, 10 months ago (2016-02-24 01:08:11 UTC) #5
gone
isherman: One final CL for the current round, hopefully. Thanks for bearing with me this ...
4 years, 10 months ago (2016-02-24 22:47:46 UTC) #8
Ilya Sherman
I'm pretty confused by what these metrics are trying to achieve. Maybe it would be ...
4 years, 10 months ago (2016-02-24 23:01:02 UTC) #9
gone
Yeah, do you have any particular time you can carve out? My calendar's pretty blank. ...
4 years, 10 months ago (2016-02-24 23:22:01 UTC) #10
Ian Wen
CCT lgtm. I have a couple of questions about the change in ChromeTabbedActivity though. :) ...
4 years, 10 months ago (2016-02-24 23:25:09 UTC) #11
gone
Took another pass, based on discussions with isherman@ about histograms. I've re-merged the handleBackPressed pathways ...
4 years, 10 months ago (2016-02-25 01:30:21 UTC) #13
Ted C
https://chromiumcodereview.appspot.com/1727823002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java (left): https://chromiumcodereview.appspot.com/1727823002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java#oldcode1075 chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java:1075: RecordUserAction.record("SystemBackForNavigation"); we dropped this user action...is that intentional? Do ...
4 years, 10 months ago (2016-02-25 18:07:41 UTC) #14
gone
https://chromiumcodereview.appspot.com/1727823002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java (left): https://chromiumcodereview.appspot.com/1727823002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java#oldcode1075 chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java:1075: RecordUserAction.record("SystemBackForNavigation"); On 2016/02/25 18:07:41, Ted C wrote: > we ...
4 years, 10 months ago (2016-02-25 18:50:15 UTC) #15
Ted C
lgtm ... discussions continue but I don't really care about the outcome :-) https://chromiumcodereview.appspot.com/1727823002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java File ...
4 years, 10 months ago (2016-02-25 19:00:00 UTC) #16
Ilya Sherman
https://chromiumcodereview.appspot.com/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java File chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java (right): https://chromiumcodereview.appspot.com/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java:62: * @param histogramName Name to use for the histogram. ...
4 years, 10 months ago (2016-02-25 21:41:25 UTC) #17
gone
https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java File chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java (right): https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java:62: * @param histogramName Name to use for the histogram. ...
4 years, 10 months ago (2016-02-25 22:18:14 UTC) #18
Ilya Sherman
Metrics LGTM, thanks. https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java File chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java (right): https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java:62: * @param histogramName Name to use ...
4 years, 10 months ago (2016-02-25 23:13:57 UTC) #19
gone
Thanks! https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java File chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java (right): https://codereview.chromium.org/1727823002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/metrics/ActivityStopMetrics.java:62: * @param histogramName Name to use for the ...
4 years, 10 months ago (2016-02-25 23:29:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1727823002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1727823002/160001
4 years, 10 months ago (2016-02-25 23:33:03 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/29358)
4 years, 10 months ago (2016-02-26 00:24:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1727823002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1727823002/160001
4 years, 10 months ago (2016-02-26 01:03:05 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/121908) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-26 01:18:40 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1727823002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1727823002/160001
4 years, 10 months ago (2016-02-26 01:24:58 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/122045)
4 years, 10 months ago (2016-02-26 02:51:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1727823002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1727823002/160001
4 years, 10 months ago (2016-02-26 03:03:05 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-26 03:57:15 UTC) #37
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 03:58:48 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/480e2efb79e326b1bd940a795eda5f62711bfc5e
Cr-Commit-Position: refs/heads/master@{#377803}

Powered by Google App Engine
This is Rietveld 408576698