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

Unified Diff: components/variations/variations_seed_processor_unittest.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/variations/variations_seed_processor_unittest.cc
diff --git a/components/variations/variations_seed_processor_unittest.cc b/components/variations/variations_seed_processor_unittest.cc
index 8bc5ce63be589dc011900959286e9e4b2f9eafd4..d2a2959529aa06fc3f96d641140e0cb7564b29b7 100644
--- a/components/variations/variations_seed_processor_unittest.cc
+++ b/components/variations/variations_seed_processor_unittest.cc
@@ -6,8 +6,8 @@
#include <stddef.h>
#include <stdint.h>
-
#include <map>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -559,7 +559,7 @@ TEST_F(VariationsSeedProcessorTest, FeatureEnabledOrDisableByTrial) {
EXPECT_TRUE(
CreateTrialFromStudyWithFeatureList(&study, feature_list.get()));
- base::FeatureList::SetInstance(feature_list.Pass());
+ base::FeatureList::SetInstance(std::move(feature_list));
// |kUnrelatedFeature| should not be affected.
EXPECT_FALSE(base::FeatureList::IsEnabled(kUnrelatedFeature));
@@ -696,7 +696,7 @@ TEST_F(VariationsSeedProcessorTest, FeatureAssociationAndForcing) {
EXPECT_TRUE(
CreateTrialFromStudyWithFeatureList(&study, feature_list.get()));
- base::FeatureList::SetInstance(feature_list.Pass());
+ base::FeatureList::SetInstance(std::move(feature_list));
// Trial should not be activated initially, but later might get activated
// depending on the expected values.
« no previous file with comments | « components/variations/service/variations_service_unittest.cc ('k') | components/version_ui/version_handler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698