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

Issue 1267213002: [Android] Add UMA histograms to measure context menu actions. (Closed)

Created:
5 years, 4 months ago by newt (away)
Modified:
5 years, 4 months ago
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

[Android] Add UMA histograms to measure context menu actions. This adds four related histograms to measure how users interact with context menus. The histograms are ContextMenu.Link, ContextMenu.Image, ContextMenu.ImageLink, and ContextMenu.Video, and the values are the various actions that can be taken on each context menu, e.g. "Open in new tab" or "Save image". For example, if a user long presses an image and selects "Copy image", we'll record the "Copy image" event in the ContextMenu.Image histogram. ContextMenu.ImageLink is used when the user long presses an image which is also a link. This case is treated specially because its context menu is currently so long that it needs extra love and investigation. BUG=483685 Committed: https://crrev.com/a60a2e9061334a5726ae30166ef004209719f4f9 Cr-Commit-Position: refs/heads/master@{#343283}

Patch Set 1 #

Total comments: 5

Patch Set 2 : comments from #1 #

Total comments: 2

Patch Set 3 : renamed to ContextMenu.SelectedOption #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 2 4 chunks +58 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
newt (away)
dtrainor: ChromeContextMenuPopulator.java asvitkine: histograms.xml
5 years, 4 months ago (2015-08-04 01:19:40 UTC) #2
newt (away)
edwardjung: Could you chime in on whether the histograms I've created will work for desktop ...
5 years, 4 months ago (2015-08-04 01:20:15 UTC) #3
David Trainor- moved to gerrit
lgtm https://chromiumcodereview.appspot.com/1267213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://chromiumcodereview.appspot.com/1267213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode52 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:52: static void record(ContextMenuParams params, int action) { assert ...
5 years, 4 months ago (2015-08-04 20:08:06 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1267213002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1267213002/diff/1/tools/metrics/histograms/histograms.xml#newcode4120 tools/metrics/histograms/histograms.xml:4120: +<histogram name="ContextMenu.Image" enum="ContextMenuAction"> Since these are Android specific, perhaps ...
5 years, 4 months ago (2015-08-04 21:29:13 UTC) #5
edwardjung
On 2015/08/04 01:20:15, newt wrote: > edwardjung: Could you chime in on whether the histograms ...
5 years, 4 months ago (2015-08-10 10:32:55 UTC) #6
newt (away)
On 2015/08/10 10:32:55, edwardjung wrote: > On 2015/08/04 01:20:15, newt wrote: > > edwardjung: Could ...
5 years, 4 months ago (2015-08-10 20:24:01 UTC) #7
edwardjung
On 2015/08/10 20:24:01, newt wrote: > On 2015/08/10 10:32:55, edwardjung wrote: > > On 2015/08/04 ...
5 years, 4 months ago (2015-08-11 10:38:43 UTC) #8
Alexei Svitkine (slow)
So, from dashboard use point of view, it's fine to have different enums be logged ...
5 years, 4 months ago (2015-08-11 15:43:10 UTC) #9
newt (away)
https://codereview.chromium.org/1267213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/1267213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode52 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:52: static void record(ContextMenuParams params, int action) { On 2015/08/04 ...
5 years, 4 months ago (2015-08-12 23:43:20 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1267213002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1267213002/diff/20001/tools/metrics/histograms/histograms.xml#newcode4159 tools/metrics/histograms/histograms.xml:4159: +<histogram name="ContextMenu" enum="ContextMenuAction"> I think this should be named ...
5 years, 4 months ago (2015-08-13 15:35:40 UTC) #11
newt (away)
https://codereview.chromium.org/1267213002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1267213002/diff/20001/tools/metrics/histograms/histograms.xml#newcode4159 tools/metrics/histograms/histograms.xml:4159: +<histogram name="ContextMenu" enum="ContextMenuAction"> On 2015/08/13 15:35:40, Alexei Svitkine (OOO ...
5 years, 4 months ago (2015-08-13 17:32:03 UTC) #12
Alexei Svitkine (slow)
lgtm
5 years, 4 months ago (2015-08-13 17:32:59 UTC) #13
newt (away)
edwardjung: Does this all look good to you?
5 years, 4 months ago (2015-08-13 17:37:27 UTC) #14
edwardjung
lgtm
5 years, 4 months ago (2015-08-13 17:53:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267213002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267213002/40001
5 years, 4 months ago (2015-08-13 20:42:02 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-13 22:01:38 UTC) #19
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 22:02:15 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a60a2e9061334a5726ae30166ef004209719f4f9
Cr-Commit-Position: refs/heads/master@{#343283}

Powered by Google App Engine
This is Rietveld 408576698