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

Unified Diff: components/rappor/sampler.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months 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') | components/rappor/sampler_unittest.cc » ('j') | 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 9ad0da95880e8d6f37a9dc60af46e8b694c2fdb4..b6a809807c8e0f65bb7403d02baee0d70abd1ab2 100644
--- a/components/rappor/sampler.cc
+++ b/components/rappor/sampler.cc
@@ -19,7 +19,7 @@ Sampler::Sampler() {}
Sampler::~Sampler() {}
void Sampler::AddSample(const std::string& metric_name,
- scoped_ptr<Sample> sample) {
+ std::unique_ptr<Sample> sample) {
++sample_counts_[metric_name];
// Replace the previous sample with a 1 in sample_count_ chance so that each
// sample has equal probability of being reported.
« no previous file with comments | « components/rappor/sampler.h ('k') | components/rappor/sampler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698