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

Side by Side Diff: tools/metrics/actions/extract_actions.py

Issue 150573004: UMA histrograms to track MW support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed MobileMultiWindowCapableSession, clarified description for MobileMultiWindowSession Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Extract UserMetrics "actions" strings from the Chrome source. 7 """Extract UserMetrics "actions" strings from the Chrome source.
8 8
9 This program generates the list of known actions we expect to see in the 9 This program generates the list of known actions we expect to see in the
10 user behavior logs. It walks the Chrome source, looking for calls to 10 user behavior logs. It walks the Chrome source, looking for calls to
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 actions.add('MobileMenuForward') 251 actions.add('MobileMenuForward')
252 actions.add('MobileMenuFullscreen') 252 actions.add('MobileMenuFullscreen')
253 actions.add('MobileMenuNewIncognitoTab') 253 actions.add('MobileMenuNewIncognitoTab')
254 actions.add('MobileMenuNewTab') 254 actions.add('MobileMenuNewTab')
255 actions.add('MobileMenuOpenTabs') 255 actions.add('MobileMenuOpenTabs')
256 actions.add('MobileMenuQuit') 256 actions.add('MobileMenuQuit')
257 actions.add('MobileMenuReload') 257 actions.add('MobileMenuReload')
258 actions.add('MobileMenuSettings') 258 actions.add('MobileMenuSettings')
259 actions.add('MobileMenuShare') 259 actions.add('MobileMenuShare')
260 actions.add('MobileMenuShow') 260 actions.add('MobileMenuShow')
261 actions.add('MobileMWSession')
261 actions.add('MobileNTPBookmark') 262 actions.add('MobileNTPBookmark')
262 actions.add('MobileNTPForeignSession') 263 actions.add('MobileNTPForeignSession')
263 actions.add('MobileNTPMostVisited') 264 actions.add('MobileNTPMostVisited')
264 actions.add('MobileNTPRecentlyClosed') 265 actions.add('MobileNTPRecentlyClosed')
265 actions.add('MobileNTPSwitchToBookmarks') 266 actions.add('MobileNTPSwitchToBookmarks')
266 actions.add('MobileNTPSwitchToIncognito') 267 actions.add('MobileNTPSwitchToIncognito')
267 actions.add('MobileNTPSwitchToMostVisited') 268 actions.add('MobileNTPSwitchToMostVisited')
268 actions.add('MobileNTPSwitchToOpenTabs') 269 actions.add('MobileNTPSwitchToOpenTabs')
269 actions.add('MobileNewTabOpened') 270 actions.add('MobileNewTabOpened')
270 actions.add('MobileOmniboxSearch') 271 actions.add('MobileOmniboxSearch')
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 else: 634 else:
634 print action 635 print action
635 636
636 if hash_output: 637 if hash_output:
637 print "Done. Do not forget to add chromeactions.txt to your changelist" 638 print "Done. Do not forget to add chromeactions.txt to your changelist"
638 return 0 639 return 0
639 640
640 641
641 if '__main__' == __name__: 642 if '__main__' == __name__:
642 sys.exit(main(sys.argv)) 643 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698