Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: components/rappor/sampler.cc

Issue 2599373002: Remove base::ScopedPtrHashMap from components/rappor/. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/rappor/sampler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/sampler.cc
diff --git a/components/rappor/sampler.cc b/components/rappor/sampler.cc
index b6a809807c8e0f65bb7403d02baee0d70abd1ab2..c334b40ff0d27d3425124af186c80218f9366086 100644
--- a/components/rappor/sampler.cc
+++ b/components/rappor/sampler.cc
@@ -24,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, std::move(sample));
+ samples_[metric_name] = std::move(sample);
}
void Sampler::ExportMetrics(const std::string& secret, RapporReports* reports) {
« no previous file with comments | « components/rappor/sampler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698