| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index 0f30e379eb3301d915c0b06d1c78066fa993f10f..adfc9a8c7c10f100f23461cf93f75bc2cd47f836 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -123,6 +123,10 @@ bool Value::GetAsList(ListValue** out_value) {
|
| return false;
|
| }
|
|
|
| +bool Value::GetAsList(const ListValue** out_value) const {
|
| + return false;
|
| +}
|
| +
|
| Value* Value::DeepCopy() const {
|
| // This method should only be getting called for null Values--all subclasses
|
| // need to provide their own implementation;.
|
| @@ -866,6 +870,12 @@ bool ListValue::GetAsList(ListValue** out_value) {
|
| return true;
|
| }
|
|
|
| +bool ListValue::GetAsList(const ListValue** out_value) const {
|
| + if (out_value)
|
| + *out_value = this;
|
| + return true;
|
| +}
|
| +
|
| ListValue* ListValue::DeepCopy() const {
|
| ListValue* result = new ListValue;
|
|
|
|
|