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

Unified Diff: chrome/tools/extract_actions.py

Issue 7637010: Add UMA metrics for register protocol handler, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update a comment Created 9 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:
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 03025ff052ed4f0de310c4f6d8b0ae876e71952a..324981512496c6f9fa0665d1520d5f639f30cb79 100755
--- a/chrome/tools/extract_actions.py
+++ b/chrome/tools/extract_actions.py
@@ -12,7 +12,7 @@ as well as generating the lists of possible actions in situations where
there are many possible actions.
See also:
- chrome/browser/user_metrics.h
+ content/browser/user_metrics.h
http://wiki.corp.google.com/twiki/bin/view/Main/ChromeUserExperienceMetrics
If run with a "--hash" argument, chromeactions.txt will be updated.
@@ -331,11 +331,13 @@ def AddLiteralActions(actions):
EXTENSIONS = ('.cc', '.mm', '.c', '.m')
# Walk the source tree to process all .cc files.
- chrome_root = os.path.join(path_utils.ScriptDir(), '..')
+ chrome_root = os.path.normpath(os.path.join(path_utils.ScriptDir(), '..'))
WalkDirectory(chrome_root, actions, EXTENSIONS, GrepForActions)
- content_root = os.path.join(path_utils.ScriptDir(), '..', '..', 'content')
+ content_root = os.path.normpath(os.path.join(path_utils.ScriptDir(),
+ '..', '..', 'content'))
WalkDirectory(content_root, actions, EXTENSIONS, GrepForActions)
- webkit_root = os.path.join(path_utils.ScriptDir(), '..', '..', 'webkit')
+ webkit_root = os.path.normpath(os.path.join(path_utils.ScriptDir(),
+ '..', '..', 'webkit'))
WalkDirectory(os.path.join(webkit_root, 'glue'), actions, EXTENSIONS,
GrepForActions)
WalkDirectory(os.path.join(webkit_root, 'port'), actions, EXTENSIONS,
« 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