void ReportOpenResult(ReferenceOpenOutcome outcome) {To avoid having to introduce temporary ReferenceOpenOutcome variables or write the same ReferenceOpenOutcome twice, we can do
```
ReferenceOpenOutcome ReportOpenResult(ReferenceOpenOutcome outcome) {
base::Uma...
return outcome;
}
```
Then in other places we can do `return ReportOpenResult(ReferenceOpenOutcome::SUCCESS);` or similar.
ReferenceOpenOutcome StartListening(ReferenceOutput::Listener* listener,Let's report in here instead, so we also include STREAM_PREVIOUS_ERROR.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL
void ReportOpenResult(ReferenceOpenOutcome outcome) {To avoid having to introduce temporary ReferenceOpenOutcome variables or write the same ReferenceOpenOutcome twice, we can do
```
ReferenceOpenOutcome ReportOpenResult(ReferenceOpenOutcome outcome) {
base::Uma...
return outcome;
}
```
Then in other places we can do `return ReportOpenResult(ReferenceOpenOutcome::SUCCESS);` or similar.
Done
ReferenceOpenOutcome StartListening(ReferenceOutput::Listener* listener,Let's report in here instead, so we also include STREAM_PREVIOUS_ERROR.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM! @dalec...@chromium.org, Olga (who usually reviews our AudioService CLs) is on vacation, please take a look :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
SUCCESS = 0,Naming style these days is `kSuccess`, etc https://google.github.io/styleguide/cppguide.html#Enumerator_Names
Since you're now mixing styles, this seems a good thing to cleanup in a separate CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
SUCCESS = 0,Naming style these days is `kSuccess`, etc https://google.github.io/styleguide/cppguide.html#Enumerator_Names
Since you're now mixing styles, this seems a good thing to cleanup in a separate CL.
Will do! Thanks
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Adding Evan for histograms.xml and enums.xml, PTAL! :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
enum class ReferenceOpenOutcome {nit: this enum should have a comment that starts with:
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
Also, ideally it should be guarded by a LINT statement
enum="BooleanRuntimeError" expires_after="2026-07-03">You could just do `enum="Boolean"` here and remove the `BooleanRuntimeError` definition from enums.xml
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
nit: this enum should have a comment that starts with:
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.Also, ideally it should be guarded by a LINT statement
Done
You could just do `enum="Boolean"` here and remove the `BooleanRuntimeError` definition from enums.xml
Yes, but we would like to keep it this way because it makes it clear at a glance if we're looking at the Error or NoError plot from a glance without looking at the histogram name.
| 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. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Adds Media.Audio.LoopbackReference UMAs
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |