ChromeOS should record FileBrowser.CreateNewFolder.... events

Added UMA user action implemented in http://codereview.chromium.org/8490014/
to extract_actions.py, updated chromeactions.txt.

Note: when I ran extract_actions.py --hash I saw a number of new actions show up
in chromeactions.txt. Someone has probably forgot to update it.
I am only adding the one line related to my action in this patch.

BUG=chromium-os:22860
TEST=


Review URL: http://codereview.chromium.org/8537008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110303 0039d316-1c4b-4281-b951-d872f2087c98
parent 837897f2
...@@ -206,6 +206,10 @@ ...@@ -206,6 +206,10 @@
0x2aeb39c03cc86464 CreateLink 0x2aeb39c03cc86464 CreateLink
0x1225d110ef7fba17 CreateProfile 0x1225d110ef7fba17 CreateProfile
0x30604f84327d0ae5 CreateShortcut 0x30604f84327d0ae5 CreateShortcut
0x8b83a029888765ac CriticalNotificationShown
0x3811e868a8b2639a CriticalNotification_AutoRestart
0x74d29a646c3b335c CriticalNotification_Ignore
0x417f35273c2e009b CriticalNotification_Restart
0xfdf6ee64a0588855 Cryptohome.PKCS11InitFail 0xfdf6ee64a0588855 Cryptohome.PKCS11InitFail
0xeb334dca00e390e0 Cut 0xeb334dca00e390e0 Cut
0xb94d8a074eddd267 Debugger 0xb94d8a074eddd267 Debugger
...@@ -246,7 +250,9 @@ ...@@ -246,7 +250,9 @@
0xfef46e5063ce3dc7 Exit 0xfef46e5063ce3dc7 Exit
0xdf56dffe242f621a Extensions.ExtensionInstalled 0xdf56dffe242f621a Extensions.ExtensionInstalled
0x4f07c158c8047ab9 Extensions.ExtensionUninstalled 0x4f07c158c8047ab9 Extensions.ExtensionUninstalled
0x08566bf746b7f665 Extensions.IDChangedError
0xa295e3ad39bbacc0 Extensions.WebStoreLaunch 0xa295e3ad39bbacc0 Extensions.WebStoreLaunch
0x4268aeb48d5c0d1e FileBrowser.CreateNewFolder
0x4cfa6c981549e990 Find 0x4cfa6c981549e990 Find
0x058404d575478e31 FindNext 0x058404d575478e31 FindNext
0xca56592cf013fc40 FindPrevious 0xca56592cf013fc40 FindPrevious
......
...@@ -223,6 +223,15 @@ def AddChromeOSActions(actions): ...@@ -223,6 +223,15 @@ def AddChromeOSActions(actions):
# Actions sent by Chrome OS cryptohome. # Actions sent by Chrome OS cryptohome.
actions.add('Cryptohome.PKCS11InitFail') actions.add('Cryptohome.PKCS11InitFail')
def AddExtensionActions(actions):
"""Add actions reported by extensions via chrome.experimental.metrics API.
Arguments:
actions: set of actions to add to.
"""
# Actions sent by Chrome OS File Browser.
actions.add('FileBrowser.CreateNewFolder')
def GrepForActions(path, actions): def GrepForActions(path, actions):
"""Grep a source file for calls to UserMetrics functions. """Grep a source file for calls to UserMetrics functions.
...@@ -413,6 +422,7 @@ def main(argv): ...@@ -413,6 +422,7 @@ def main(argv):
AddClosedSourceActions(actions) AddClosedSourceActions(actions)
AddChromeOSActions(actions) AddChromeOSActions(actions)
AddExtensionActions(actions)
if hash_output: if hash_output:
f = open(chromeactions_path, "w") f = open(chromeactions_path, "w")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment