@@ -12,10 +12,6 @@ class AutofillTelemetryBase {
12
12
EVENT_CATEGORY = null ;
13
13
EVENT_OBJECT_FORM_INTERACTION = null ;
14
14
15
- HISTOGRAM_NUM_USES = null ;
16
- HISTOGRAM_PROFILE_NUM_USES = null ;
17
- HISTOGRAM_PROFILE_NUM_USES_KEY = null ;
18
-
19
15
#initFormEventExtra( value ) {
20
16
let extra = { } ;
21
17
for ( const field of Object . values ( this . SUPPORTED_FIELDS ) ) {
@@ -183,17 +179,6 @@ class AutofillTelemetryBase {
183
179
throw new Error ( "Not implemented." ) ;
184
180
}
185
181
186
- recordNumberOfUse ( records ) {
187
- let histogram = Services . telemetry . getKeyedHistogramById (
188
- this . HISTOGRAM_PROFILE_NUM_USES
189
- ) ;
190
- histogram . clear ( ) ;
191
-
192
- for ( let record of records ) {
193
- histogram . add ( this . HISTOGRAM_PROFILE_NUM_USES_KEY , record . timesUsed ) ;
194
- }
195
- }
196
-
197
182
recordIframeLayoutDetection ( flowId , fieldDetails ) {
198
183
const fieldsInMainFrame = [ ] ;
199
184
const fieldsInIframe = [ ] ;
@@ -238,9 +223,6 @@ export class AddressTelemetry extends AutofillTelemetryBase {
238
223
EVENT_OBJECT_FORM_INTERACTION = "AddressForm" ;
239
224
EVENT_OBJECT_FORM_INTERACTION_EXT = "AddressFormExt" ;
240
225
241
- HISTOGRAM_PROFILE_NUM_USES = "AUTOFILL_PROFILE_NUM_USES" ;
242
- HISTOGRAM_PROFILE_NUM_USES_KEY = "address" ;
243
-
244
226
// Fields that are recorded in `address_form` and `address_form_ext` telemetry
245
227
SUPPORTED_FIELDS = {
246
228
"street-address" : "street_address" ,
@@ -316,10 +298,6 @@ class CreditCardTelemetry extends AutofillTelemetryBase {
316
298
EVENT_CATEGORY = "creditcard" ;
317
299
EVENT_OBJECT_FORM_INTERACTION = "CcFormV2" ;
318
300
319
- HISTOGRAM_NUM_USES = "CREDITCARD_NUM_USES" ;
320
- HISTOGRAM_PROFILE_NUM_USES = "AUTOFILL_PROFILE_NUM_USES" ;
321
- HISTOGRAM_PROFILE_NUM_USES_KEY = "credit_card" ;
322
-
323
301
// Mapping of field name used in formautofill code to the field name
324
302
// used in the telemetry.
325
303
SUPPORTED_FIELDS = {
@@ -369,23 +347,6 @@ class CreditCardTelemetry extends AutofillTelemetryBase {
369
347
}
370
348
}
371
349
372
- recordNumberOfUse ( records ) {
373
- super . recordNumberOfUse ( records ) ;
374
-
375
- if ( ! this . HISTOGRAM_NUM_USES ) {
376
- return ;
377
- }
378
-
379
- let histogram = Services . telemetry . getHistogramById (
380
- this . HISTOGRAM_NUM_USES
381
- ) ;
382
- histogram . clear ( ) ;
383
-
384
- for ( let record of records ) {
385
- histogram . add ( record . timesUsed ) ;
386
- }
387
- }
388
-
389
350
recordAutofillProfileCount ( count ) {
390
351
Glean . formautofillCreditcards . autofillProfilesCount . set ( count ) ;
391
352
}
@@ -463,14 +424,6 @@ export class AutofillTelemetry {
463
424
telemetry . recordAutofillProfileCount ( count ) ;
464
425
}
465
426
466
- /**
467
- * Utility functions for address/credit card number of use
468
- */
469
- static recordNumberOfUse ( type , records ) {
470
- const telemetry = this . #getTelemetryByType( type ) ;
471
- telemetry . recordNumberOfUse ( records ) ;
472
- }
473
-
474
427
static recordFormSubmissionHeuristicCount ( label ) {
475
428
Glean . formautofill . formSubmissionHeuristic [ label ] . add ( 1 ) ;
476
429
}
0 commit comments