| Index: base/values.h
|
| diff --git a/base/values.h b/base/values.h
|
| index 950d492b8bf418e06f1d62367ed2c5274a91faf6..32441ae73fbc0b0f1448bb7a89be4eebb52d6ed1 100644
|
| --- a/base/values.h
|
| +++ b/base/values.h
|
| @@ -469,14 +469,13 @@ class BASE_EXPORT ListValue : public Value {
|
| void AppendStrings(const std::vector<std::string>& in_values);
|
| void AppendStrings(const std::vector<string16>& in_values);
|
|
|
| - // Appends a Value if it's not already present. Takes ownership of the
|
| - // |in_value|. Returns true if successful, or false if the value was already
|
| - // present. If the value was already present the |in_value| is deleted.
|
| - bool AppendIfNotPresent(Value* in_value);
|
| + // Appends a Value if it's not already present. Returns true if successful,
|
| + // or false if the value was already
|
| + bool AppendIfNotPresent(std::unique_ptr<Value> in_value);
|
|
|
| // Insert a Value at index.
|
| // Returns true if successful, or false if the index was out of range.
|
| - bool Insert(size_t index, Value* in_value);
|
| + bool Insert(size_t index, std::unique_ptr<Value> in_value);
|
|
|
| // Searches for the first instance of |value| in the list using the Equals
|
| // method of the Value type.
|
|
|