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

Unified Diff: tools/metrics/actions/extract_actions.py

Issue 23508003: Added UMA actions to devices page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/actions/extract_actions.py
diff --git a/tools/metrics/actions/extract_actions.py b/tools/metrics/actions/extract_actions.py
index 5e380e107c7d99d492905cb9592718fe8e0e4f1a..5dcefaf3e33ca3d7d9b900a440c6bec7b97ea01b 100755
--- a/tools/metrics/actions/extract_actions.py
+++ b/tools/metrics/actions/extract_actions.py
@@ -550,6 +550,20 @@ def AddHistoryPageActions(actions):
actions.add('HistoryPage_ConfirmRemoveSelected')
actions.add('HistoryPage_CancelRemoveSelected')
+def AddDevicesPageActions(actions):
+ """Add actions that are used in Devices page.
+
+ Arguments
+ actions: set of actions to add to.
+ """
+ actions.add('DevicesPage_Opened')
+ actions.add('DevicesPage_AddPrintersClicked')
+ actions.add('DevicesPage_RegisterClicked')
+ actions.add('DevicesPage_RegisterCancel')
+ actions.add('DevicesPage_RegisterFailure')
+ actions.add('DevicesPage_RegisterSuccess')
+ actions.add('DevicesPage_ManageClicked')
+
def main(argv):
if '--hash' in argv:
hash_output = True
@@ -584,11 +598,12 @@ def main(argv):
# print "Scanned {0} number of files".format(number_of_files_total)
# print "Found {0} entries".format(len(actions))
- AddClosedSourceActions(actions)
- AddChromeOSActions(actions)
- AddExtensionActions(actions)
AddAndroidActions(actions)
AddBookmarkManagerActions(actions)
+ AddChromeOSActions(actions)
+ AddClosedSourceActions(actions)
+ AddDevicesPageActions(actions)
+ AddExtensionActions(actions)
AddHistoryPageActions(actions)
if hash_output:
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698