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

Unified Diff: components/rappor/rappor_service.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 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/log_uploader.cc ('k') | components/rappor/rappor_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/rappor_service.cc
diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc
index 0d2c4233c58e33cc56d07d456143dde44c195c47..02853afb34f2f1c8d2fc5b61a0c4db778df1a818 100644
--- a/components/rappor/rappor_service.cc
+++ b/components/rappor/rappor_service.cc
@@ -4,6 +4,8 @@
#include "components/rappor/rappor_service.h"
+#include <utility>
+
#include "base/metrics/field_trial.h"
#include "base/metrics/metrics_hashes.h"
#include "base/stl_util.h"
@@ -67,7 +69,7 @@ RapporService::~RapporService() {
void RapporService::AddDailyObserver(
scoped_ptr<metrics::DailyEvent::Observer> observer) {
- daily_event_.AddObserver(observer.Pass());
+ daily_event_.AddObserver(std::move(observer));
}
void RapporService::Initialize(net::URLRequestContextGetter* request_context) {
@@ -260,7 +262,7 @@ void RapporService::RecordSampleObj(const std::string& metric_name,
if (!RecordingAllowed(sample->parameters()))
return;
DVLOG(1) << "Recording sample of metric \"" << metric_name << "\"";
- sampler_.AddSample(metric_name, sample.Pass());
+ sampler_.AddSample(metric_name, std::move(sample));
}
} // namespace rappor
« no previous file with comments | « components/rappor/log_uploader.cc ('k') | components/rappor/rappor_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698