summaryrefslogtreecommitdiffstats
path: root/components/rappor/sampler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/rappor/sampler.cc')
-rw-r--r--components/rappor/sampler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/rappor/sampler.cc b/components/rappor/sampler.cc
index 5d3e8e3..9ad0da9 100644
--- a/components/rappor/sampler.cc
+++ b/components/rappor/sampler.cc
@@ -6,6 +6,7 @@
#include <map>
#include <string>
+#include <utility>
#include "base/rand_util.h"
@@ -23,7 +24,7 @@ void Sampler::AddSample(const std::string& metric_name,
// Replace the previous sample with a 1 in sample_count_ chance so that each
// sample has equal probability of being reported.
if (base::RandGenerator(sample_counts_[metric_name]) == 0)
- samples_.set(metric_name, sample.Pass());
+ samples_.set(metric_name, std::move(sample));
}
void Sampler::ExportMetrics(const std::string& secret, RapporReports* reports) {