mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
a665236679
commit
c5ecfdbb33
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user