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

Unified Diff: chrome/tools/extract_actions.py

Issue 8537008: ChromeOS should record FileBrowser.CreateNewFolder.... events (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed obsolete name Created 9 years, 1 month 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 | « chrome/tools/chromeactions.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/extract_actions.py
diff --git a/chrome/tools/extract_actions.py b/chrome/tools/extract_actions.py
index 739e3ee6529ac9d6392f8b76d7bff118a0857bcf..650f6e4cfbd3d88bdbde4472eed6c1e31a043627 100755
--- a/chrome/tools/extract_actions.py
+++ b/chrome/tools/extract_actions.py
@@ -223,6 +223,15 @@ def AddChromeOSActions(actions):
# Actions sent by Chrome OS cryptohome.
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):
"""Grep a source file for calls to UserMetrics functions.
@@ -413,6 +422,7 @@ def main(argv):
AddClosedSourceActions(actions)
AddChromeOSActions(actions)
+ AddExtensionActions(actions)
if hash_output:
f = open(chromeactions_path, "w")
« no previous file with comments | « chrome/tools/chromeactions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698