Lines Matching defs:copy
35 // Make a deep copy of |node|, but don't include empty lists or dictionaries
36 // in the copy. It's possible for this function to return NULL and it
39 Value copy(Value::Type::LIST);
43 copy.GetList().push_back(std::move(*child_copy));
45 return copy.GetList().empty() ? nullptr
46 : std::make_unique<Value>(std::move(copy));
51 std::unique_ptr<DictionaryValue> copy;
55 if (!copy)
56 copy = std::make_unique<DictionaryValue>();
57 copy->SetWithoutPathExpansion(it.key(), std::move(child_copy));
60 return copy;
1030 std::unique_ptr<DictionaryValue> copy =
1032 if (!copy)
1033 copy = std::make_unique<DictionaryValue>();
1034 return copy;
1050 // All other cases: Make a copy and hook it up.