Bug 1241278 - Record telemetry for notification permission callback usage. r=vladan

This commit is contained in:
Kit Cambridge 2016-01-21 09:37:53 -08:00
parent 0d8c068131
commit d873e15617
2 changed files with 9 additions and 0 deletions

View File

@ -656,6 +656,8 @@ NotificationPermissionRequest::ResolvePromise()
mCallback->Call(mPermission, error);
rv = error.StealNSResult();
}
Telemetry::Accumulate(
Telemetry::WEB_NOTIFICATION_REQUEST_PERMISSION_CALLBACK, !!mCallback);
mPromise->MaybeResolve(mPermission);
return rv;
}

View File

@ -10072,5 +10072,12 @@
"bug_numbers": [1229961],
"n_values": 12,
"description": "Plugin drawing model. 0 when windowed, otherwise NPDrawingModel + 1."
},
"WEB_NOTIFICATION_REQUEST_PERMISSION_CALLBACK": {
"alert_emails": ["push@mozilla.com"],
"expires_in_version": "55",
"bug_numbers": [1241278],
"kind": "boolean",
"description": "Usage of the deprecated Notification.requestPermission() callback argument"
}
}