| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index c6a377f63f0c386e3cca0dffcd9d8be26143d4e5..b06df125dd1fc2a6e5d8a969e31baddaea31de51 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -119,6 +119,10 @@ bool Value::GetAsString(string16* out_value) const {
|
| return false;
|
| }
|
|
|
| +bool Value::GetAsList(ListValue** out_value) {
|
| + return false;
|
| +}
|
| +
|
| Value* Value::DeepCopy() const {
|
| // This method should only be getting called for null Values--all subclasses
|
| // need to provide their own implementation;.
|
| @@ -961,6 +965,12 @@ bool ListValue::Insert(size_t index, Value* in_value) {
|
| return true;
|
| }
|
|
|
| +bool ListValue::GetAsList(ListValue** out_value) {
|
| + if (out_value)
|
| + *out_value = this;
|
| + return true;
|
| +}
|
| +
|
| Value* ListValue::DeepCopy() const {
|
| ListValue* result = new ListValue;
|
|
|
|
|