UMA_HISTOGRAM_ENUMERATION(Palak AgarwalIt's usually preferred to use the histogram functions, `base::UmaHistogramEnumeration` instead of UMA_HISTOGRAM_ENUMERATION.
Done
record_uma_cb_.emplace(Palak AgarwalI don't see where the entries in `record_uma_cb_` are removed?
I've removed the callback now, so this comment is no longer relevant.
<histogram name="WebRTC.UserMediaRequest.GetAllScreensMedia.Result"Palak AgarwalYou may use `<token>` and `<variant>` to put everything in one histogram entry. See for example `WebRTC.Stun.Integrity.{StunPacketType}` a few lines above. In that case, you can refer to the variant in the summary by using the token name: `Counters for UserMediaRequests results for type {RequestType}...`.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LOG(ERROR) << __func__;Isn't this called also when the result is kOk?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Isn't this called also when the result is kOk?
I had this added this for local debugging, forgot to remove it.
Revert the changes to this file.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
default:You don't like having exhaustive enum switch statements? Without the 'default' it'll fail to compile when adding a new value, rather than running and crashing.
blink::LogUserMediaRequestResult(Shouldn't we preserve this? Or is it captured elsewhere?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
You don't like having exhaustive enum switch statements? Without the 'default' it'll fail to compile when adding a new value, rather than running and crashing.
Done
blink::LogUserMediaRequestResult(Shouldn't we preserve this? Or is it captured elsewhere?
This would be captured earlier when the `current_request_info_` would be reset. The request can be reset at `UserMediaProcessor::CancelRequest` and `UserMediaProcessor::StopAllProcessing`, where new logging statements have been added with this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/modules/mediastream/user_media_processor.cc
Insertions: 18, Deletions: 5.
The diff is too large to show. Please review the diff.
```
Split WebRTC.UserMediaRequest.Result2 per request type
OBSOLETE_HISTOGRAM[WebRTC.UserMediaRequest.Result2]= Split into 3 new
histograms WebRTC.UserMediaRequest.
{GetUserMedia|GetDisplayMedia|GetAllScreensMedia}.Result based on
request type
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |