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

Unified Diff: extensions/common/features/json_feature_provider.cc

Issue 2193693003: Further reduction of feature_compiler.py generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-with-leiz
Patch Set: . Created 4 years, 5 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
Index: extensions/common/features/json_feature_provider.cc
diff --git a/extensions/common/features/json_feature_provider.cc b/extensions/common/features/json_feature_provider.cc
index ab5e026efde740b3a430804519dfde84d9bf6ea3..53003a98065f9452111b7485a32ba7660e271a59 100644
--- a/extensions/common/features/json_feature_provider.cc
+++ b/extensions/common/features/json_feature_provider.cc
@@ -131,14 +131,14 @@ JSONFeatureProvider::JSONFeatureProvider(const base::DictionaryValue& root,
if (!ParseFeature(dict, iter.key(), feature.get()))
continue;
- features->push_back(std::move(feature));
+ features->push_back(feature.release());
}
std::unique_ptr<ComplexFeature> feature(
- new ComplexFeature(std::move(features)));
+ new ComplexFeature(features.release()));
feature->set_name(iter.key());
- AddFeature(iter.key(), std::move(feature));
+ AddFeature(iter.key(), feature.release());
} else {
LOG(ERROR) << iter.key() << ": Feature description must be dictionary or"
<< " list of dictionaries.";

Powered by Google App Engine
This is Rietveld 408576698