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

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

Issue 133483003: Add one extra UMA for video casting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 actions.add('PDF_Unsupported_Shared_Review') 193 actions.add('PDF_Unsupported_Shared_Review')
194 actions.add('PDF_Unsupported_Sound') 194 actions.add('PDF_Unsupported_Sound')
195 actions.add('PDF_Unsupported_XFA') 195 actions.add('PDF_Unsupported_XFA')
196 196
197 def AddAndroidActions(actions): 197 def AddAndroidActions(actions):
198 """Add actions that are used by Chrome on Android. 198 """Add actions that are used by Chrome on Android.
199 199
200 Arguments 200 Arguments
201 actions: set of actions to add to. 201 actions: set of actions to add to.
202 """ 202 """
203 actions.add('Cast_Sender_CastDeviceSelected');
203 actions.add('Cast_Sender_CastEnterFullscreen'); 204 actions.add('Cast_Sender_CastEnterFullscreen');
204 actions.add('Cast_Sender_CastDeviceSelected'); 205 actions.add('Cast_Sender_CastMediaType');
206 actions.add('Cast_Sender_CastPlayRequested');
205 actions.add('Cast_Sender_YouTubeDeviceSelected'); 207 actions.add('Cast_Sender_YouTubeDeviceSelected');
206 actions.add('Cast_Sender_CastPlayRequested');
207 actions.add('DataReductionProxy_PromoDisplayed'); 208 actions.add('DataReductionProxy_PromoDisplayed');
208 actions.add('DataReductionProxy_PromoLearnMore'); 209 actions.add('DataReductionProxy_PromoLearnMore');
209 actions.add('DataReductionProxy_TurnedOn'); 210 actions.add('DataReductionProxy_TurnedOn');
210 actions.add('DataReductionProxy_TurnedOnFromPromo'); 211 actions.add('DataReductionProxy_TurnedOnFromPromo');
211 actions.add('DataReductionProxy_TurnedOff'); 212 actions.add('DataReductionProxy_TurnedOff');
212 actions.add('MobileActionBarShown') 213 actions.add('MobileActionBarShown')
213 actions.add('MobileBeamCallbackSuccess') 214 actions.add('MobileBeamCallbackSuccess')
214 actions.add('MobileBeamInvalidAppState') 215 actions.add('MobileBeamInvalidAppState')
215 actions.add('MobileBreakpadUploadAttempt') 216 actions.add('MobileBreakpadUploadAttempt')
216 actions.add('MobileBreakpadUploadFailure') 217 actions.add('MobileBreakpadUploadFailure')
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 else: 623 else:
623 print action 624 print action
624 625
625 if hash_output: 626 if hash_output:
626 print "Done. Do not forget to add chromeactions.txt to your changelist" 627 print "Done. Do not forget to add chromeactions.txt to your changelist"
627 return 0 628 return 0
628 629
629 630
630 if '__main__' == __name__: 631 if '__main__' == __name__:
631 sys.exit(main(sys.argv)) 632 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