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

Unified Diff: components/rappor/test_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
Index: components/rappor/test_rappor_service.cc
diff --git a/components/rappor/test_rappor_service.cc b/components/rappor/test_rappor_service.cc
index 3056738cc383a22c25a49859cab1c23cd10f6b87..fb242020b903168fe35e7f1361afa27875a620ed 100644
--- a/components/rappor/test_rappor_service.cc
+++ b/components/rappor/test_rappor_service.cc
@@ -4,6 +4,8 @@
#include "components/rappor/test_rappor_service.h"
+#include <utility>
+
#include "base/logging.h"
#include "components/rappor/byte_vector_utils.h"
#include "components/rappor/proto/rappor_metric.pb.h"
@@ -65,7 +67,7 @@ TestRapporService::~TestRapporService() {}
scoped_ptr<Sample> TestRapporService::CreateSample(RapporType type) {
scoped_ptr<TestSample> test_sample(new TestSample(type));
- return test_sample.Pass();
+ return std::move(test_sample);
}
// Intercepts the sample being recorded and saves it in a test structure.
@@ -77,7 +79,7 @@ void TestRapporService::RecordSampleObj(const std::string& metric_name,
shadows_.insert(std::pair<std::string, TestSample::Shadow>(
metric_name, test_sample->GetShadow()));
// Original version is still called.
- RapporService::RecordSampleObj(metric_name, sample.Pass());
+ RapporService::RecordSampleObj(metric_name, std::move(sample));
}
void TestRapporService::RecordSample(const std::string& metric_name,
« no previous file with comments | « components/rappor/sampler_unittest.cc ('k') | components/renderer_context_menu/render_view_context_menu_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698