Index: components/rappor/rappor_service_unittest.cc |
diff --git a/components/rappor/rappor_service_unittest.cc b/components/rappor/rappor_service_unittest.cc |
index 75f0605c645de862be4d1f5bec5865545da36be7..b475dbc2d4364a6d712f94e29d36a1f360657485 100644 |
--- a/components/rappor/rappor_service_unittest.cc |
+++ b/components/rappor/rappor_service_unittest.cc |
@@ -6,6 +6,7 @@ |
#include <stddef.h> |
#include <stdint.h> |
+#include <utility> |
#include "base/base64.h" |
#include "base/metrics/metrics_hashes.h" |
@@ -124,7 +125,7 @@ TEST(RapporServiceTest, RecordSample) { |
rappor_service.CreateSample(SAFEBROWSING_RAPPOR_TYPE); |
sample->SetStringField("Url", "example.com"); |
sample->SetFlagsField("Flags1", 0xbcd, 12); |
- rappor_service.RecordSampleObj("ObjMetric", sample.Pass()); |
+ rappor_service.RecordSampleObj("ObjMetric", std::move(sample)); |
uint64_t url_hash = base::HashMetricName("ObjMetric.Url"); |
uint64_t flags_hash = base::HashMetricName("ObjMetric.Flags1"); |
RapporReports reports; |