Chromium Code Reviews| Index: third_party/WebKit/Source/platform/JSONValues.cpp |
| diff --git a/third_party/WebKit/Source/platform/JSONValues.cpp b/third_party/WebKit/Source/platform/JSONValues.cpp |
| index 3001d16776fb8a75aee30dbfe6403eb1973a1f69..90a3094fb7da04f90a8632d651cbbe68e1cb825e 100644 |
| --- a/third_party/WebKit/Source/platform/JSONValues.cpp |
| +++ b/third_party/WebKit/Source/platform/JSONValues.cpp |
| @@ -372,6 +372,13 @@ PassRefPtr<JSONValue> JSONObjectBase::get(const String& name) const |
| return it->value; |
| } |
| +bool JSONObjectBase::getBoolean(const String& name, bool defaultValue) const |
|
pfeldman
2016/01/25 20:19:06
We should not mess with naming conventions - this
dgozman
2016/01/26 01:16:54
Renamed to booleanProperty.
|
| +{ |
| + bool result = defaultValue; |
| + getBoolean(name, &result); |
| + return result; |
| +} |
| + |
| void JSONObjectBase::remove(const String& name) |
| { |
| m_data.remove(name); |