OLD | NEW |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 """Add actions that are used by Chrome on Android. | 214 """Add actions that are used by Chrome on Android. |
215 | 215 |
216 Arguments | 216 Arguments |
217 actions: set of actions to add to. | 217 actions: set of actions to add to. |
218 """ | 218 """ |
219 actions.add('Cast_Sender_CastDeviceSelected'); | 219 actions.add('Cast_Sender_CastDeviceSelected'); |
220 actions.add('Cast_Sender_CastEnterFullscreen'); | 220 actions.add('Cast_Sender_CastEnterFullscreen'); |
221 actions.add('Cast_Sender_CastMediaType'); | 221 actions.add('Cast_Sender_CastMediaType'); |
222 actions.add('Cast_Sender_CastPlayRequested'); | 222 actions.add('Cast_Sender_CastPlayRequested'); |
223 actions.add('Cast_Sender_YouTubeDeviceSelected'); | 223 actions.add('Cast_Sender_YouTubeDeviceSelected'); |
| 224 actions.add('DataReductionProxy_DisabledOnVPN'); |
| 225 actions.add('DataReductionProxy_IPAddressChanged'); |
224 actions.add('DataReductionProxy_PromoDisplayed'); | 226 actions.add('DataReductionProxy_PromoDisplayed'); |
225 actions.add('DataReductionProxy_PromoLearnMore'); | 227 actions.add('DataReductionProxy_PromoLearnMore'); |
226 actions.add('DataReductionProxy_TurnedOn'); | 228 actions.add('DataReductionProxy_TurnedOn'); |
227 actions.add('DataReductionProxy_TurnedOnFromPromo'); | 229 actions.add('DataReductionProxy_TurnedOnFromPromo'); |
228 actions.add('DataReductionProxy_TurnedOff'); | 230 actions.add('DataReductionProxy_TurnedOff'); |
229 actions.add('MobileActionBarShown') | 231 actions.add('MobileActionBarShown') |
230 actions.add('MobileBeamCallbackSuccess') | 232 actions.add('MobileBeamCallbackSuccess') |
231 actions.add('MobileBeamInvalidAppState') | 233 actions.add('MobileBeamInvalidAppState') |
232 actions.add('MobileBreakpadUploadAttempt') | 234 actions.add('MobileBreakpadUploadAttempt') |
233 actions.add('MobileBreakpadUploadFailure') | 235 actions.add('MobileBreakpadUploadFailure') |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 831 |
830 with open(actions_xml_path, 'wb') as f: | 832 with open(actions_xml_path, 'wb') as f: |
831 f.write(pretty) | 833 f.write(pretty) |
832 print ('Updated %s. Don\'t forget to add it to your changelist' % | 834 print ('Updated %s. Don\'t forget to add it to your changelist' % |
833 actions_xml_path) | 835 actions_xml_path) |
834 return 0 | 836 return 0 |
835 | 837 |
836 | 838 |
837 if '__main__' == __name__: | 839 if '__main__' == __name__: |
838 sys.exit(main(sys.argv)) | 840 sys.exit(main(sys.argv)) |
OLD | NEW |