Bug 1459144 - Fix CountHistogram deserialization for GeckoView. r=chutten,janerik

This adds all the samples from the provided sample set to the CountHistogram's
storage, instead of just adding 1 sample of value 1. This change does not affect
code outside of GeckoView persistence since |AddSampleSet| is not used in other
places.

MozReview-Commit-ID: 9bE0M9dgrtE

--HG--
extra : rebase_source : c2147d084415518b02148daa83107045f2993c0f
This commit is contained in:
Alessio Placitelli 2018-05-22 17:15:26 +02:00
parent a665236679
commit c5ecfdbb33

View File

@ -703,7 +703,7 @@ CountHistogram::AddSampleSet(const SampleSet& sample) {
}
if (sample.counts(indices[0]) != 0) {
Accumulate(1, sample.counts(indices[0]), indices[0]);
Histogram::AddSampleSet(sample);
}
}