Closed Bug 782373 Opened 13 years ago Closed 13 years ago

use HISTOGRAM_BOOLEAN more consistently

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file)

We should use HISTOGRAM_BOOLEAN everywhere possible, for consistency and avoiding stupid errors.
Attached patch patchSplinter Review
The obvious patch that you'd expect. CACHE_LM_INCONSISTENT doesn't get changed here because there's an outstanding patch in bug 781200 for doing that one.
Attachment #651495 - Flags: review?(taras.mozilla)
Comment on attachment 651495 [details] [diff] [review] patch Shoudn't we ban non-boolean histograms of size 2 while at it?
Attachment #651495 - Flags: review?(taras.mozilla)
Comment on attachment 651495 [details] [diff] [review] patch (In reply to Taras Glek (:taras) from comment #2) > Shoudn't we ban non-boolean histograms of size 2 while at it? We already do: http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/Telemetry.cpp#197
Attachment #651495 - Flags: review?(taras.mozilla)
Then how does the code your changing compile?
(In reply to Taras Glek (:taras) from comment #4) > Then how does the code your changing compile? I don't understand why you think it wouldn't.
(In reply to Nathan Froyd (:froydnj) from comment #5) > (In reply to Taras Glek (:taras) from comment #4) > > Then how does the code your changing compile? > > I don't understand why you think it wouldn't. Sorry I'm tired, missing obvious things. Nevermind my ask to make things not compile since that will be obsoleted by json equiv of telemetryhistograms.h file in near future. I was thinking that we should ban declaring boolean histograms with 'HISTOGRAM(' to keep TelemetryHistograms.h consistent until the end of time...but since end of .h time is near...
Attachment #651495 - Flags: review?(taras.mozilla) → review+
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: