| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index 8453bb4836d3bbaa06a0503afdb8a7b2c30de577..0b0eb073e82348ff84d8925b62f6b1db2f118fad 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -633,6 +633,15 @@ bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
|
| const_cast<const Value**>(out_value));
|
| }
|
|
|
| +bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
|
| + bool* out_value) const {
|
| + const Value* value;
|
| + if (!GetWithoutPathExpansion(key, &value))
|
| + return false;
|
| +
|
| + return value->GetAsBoolean(out_value);
|
| +}
|
| +
|
| bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
|
| int* out_value) const {
|
| const Value* value;
|
|
|