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

Unified Diff: tools/metrics/histograms/histograms.xml

Issue 1267213002: [Android] Add UMA histograms to measure context menu actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed to ContextMenu.SelectedOption Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index f1c28a0c1850f5b0cec55058ed4a83a19f642c6d..00defeb0949e338857d5d406fd64ec07686e6ae2 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -4156,6 +4156,11 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="ContextMenu.SelectedOption" enum="ContextMenuOption">
+ <owner>newt@chromium.org</owner>
+ <summary>The option that the user selected from a context menu.</summary>
+</histogram>
+
<histogram name="Cookie.BackingStoreUpdateResults" enum="BackingStoreResults">
<owner>Please list the metric's owners. Add more owner tags as needed.</owner>
<summary>
@@ -53395,6 +53400,25 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="11" label="CONTEXT_LOST_MAKECURRENT_FAILED"/>
</enum>
+<enum name="ContextMenuOption" type="int">
+ <summary>The item selected from a context menu</summary>
+ <int value="0" label="Open in new tab"/>
+ <int value="1" label="Open in incognito tab"/>
+ <int value="2" label="Copy link address"/>
+ <int value="3" label="Copy email address"/>
+ <int value="4" label="Copy link text"/>
+ <int value="5" label="Save link"/>
+ <int value="6" label="Save image"/>
+ <int value="7" label="Open image"/>
+ <int value="8" label="Open image in new tab"/>
+ <int value="9" label="Copy image"/>
+ <int value="10" label="Copy image URL"/>
+ <int value="11" label="Search by image"/>
+ <int value="12" label="Load images"/>
+ <int value="13" label="Load original image"/>
+ <int value="14" label="Save video"/>
+</enum>
+
<enum name="CookieDeletionCause" type="int">
<summary>Reason why a cookie was removed from the cookie store</summary>
<int value="0" label="explicit">
@@ -72413,6 +72437,15 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="PLT.LoadType"/>
</histogram_suffixes>
+<histogram_suffixes name="ContextMenuType" separator=".">
+ <suffix name="Link" label="The context menu was shown for a link"/>
+ <suffix name="Image" label="The context menu was shown for an image"/>
+ <suffix name="ImageLink"
+ label="The context menu was shown for an image which is also a link"/>
+ <suffix name="Video" label="The context menu was shown for a video"/>
+ <affected-histogram name="ContextMenu.SelectedOption"/>
+</histogram_suffixes>
+
<histogram_suffixes name="ContextType" separator=".">
<suffix name="BrowserCompositor"
label="A BrowserCompositor GPU command buffer context"/>
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698