| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index 8d7ca351d1e9cc6db28489f822a9f341906f04b5..95a2dedd6c83a60380a0377c7589855e98d417cd 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -353,18 +353,6 @@ DictionaryValue::~DictionaryValue() {
|
| Clear();
|
| }
|
|
|
| -bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
|
| - if (out_value)
|
| - *out_value = this;
|
| - return true;
|
| -}
|
| -
|
| -bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
|
| - if (out_value)
|
| - *out_value = this;
|
| - return true;
|
| -}
|
| -
|
| bool DictionaryValue::HasKey(const std::string& key) const {
|
| DCHECK(IsStringUTF8(key));
|
| ValueMap::const_iterator current_entry = dictionary_.find(key);
|
| @@ -694,6 +682,18 @@ void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
|
| }
|
| }
|
|
|
| +bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
|
| + if (out_value)
|
| + *out_value = this;
|
| + return true;
|
| +}
|
| +
|
| +bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
|
| + if (out_value)
|
| + *out_value = this;
|
| + return true;
|
| +}
|
| +
|
| DictionaryValue* DictionaryValue::DeepCopy() const {
|
| DictionaryValue* result = new DictionaryValue;
|
|
|
|
|