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

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

Issue 55193003: Add UMAs for video casting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed stray MediaPlayerBridge changes Created 7 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 unified diff | Download patch
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 actions.add('PDF_Unsupported_Shared_Review') 192 actions.add('PDF_Unsupported_Shared_Review')
193 actions.add('PDF_Unsupported_Sound') 193 actions.add('PDF_Unsupported_Sound')
194 actions.add('PDF_Unsupported_XFA') 194 actions.add('PDF_Unsupported_XFA')
195 195
196 def AddAndroidActions(actions): 196 def AddAndroidActions(actions):
197 """Add actions that are used by Chrome on Android. 197 """Add actions that are used by Chrome on Android.
198 198
199 Arguments 199 Arguments
200 actions: set of actions to add to. 200 actions: set of actions to add to.
201 """ 201 """
202 actions.add('Cast_Sender_CastEnterFullscreen');
203 actions.add('Cast_Sender_CastDeviceSelected');
204 actions.add('Cast_Sender_YouTubeDeviceSelected');
205 actions.add('Cast_Sender_CastPlayRequested');
202 actions.add('DataReductionProxy_PromoDisplayed'); 206 actions.add('DataReductionProxy_PromoDisplayed');
203 actions.add('DataReductionProxy_PromoLearnMore'); 207 actions.add('DataReductionProxy_PromoLearnMore');
204 actions.add('DataReductionProxy_TurnedOn'); 208 actions.add('DataReductionProxy_TurnedOn');
205 actions.add('DataReductionProxy_TurnedOnFromPromo'); 209 actions.add('DataReductionProxy_TurnedOnFromPromo');
206 actions.add('DataReductionProxy_TurnedOff'); 210 actions.add('DataReductionProxy_TurnedOff');
207 actions.add('MobileActionBarShown') 211 actions.add('MobileActionBarShown')
208 actions.add('MobileBeamCallbackSuccess') 212 actions.add('MobileBeamCallbackSuccess')
209 actions.add('MobileBeamInvalidAppState') 213 actions.add('MobileBeamInvalidAppState')
210 actions.add('MobileBreakpadUploadAttempt') 214 actions.add('MobileBreakpadUploadAttempt')
211 actions.add('MobileBreakpadUploadFailure') 215 actions.add('MobileBreakpadUploadFailure')
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 else: 616 else:
613 print action 617 print action
614 618
615 if hash_output: 619 if hash_output:
616 print "Done. Do not forget to add chromeactions.txt to your changelist" 620 print "Done. Do not forget to add chromeactions.txt to your changelist"
617 return 0 621 return 0
618 622
619 623
620 if '__main__' == __name__: 624 if '__main__' == __name__:
621 sys.exit(main(sys.argv)) 625 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698