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..2dbca3a27ae8e0f1e09bbf1df168da8577bac1d4 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::booleanProperty(const String& name, bool defaultValue) const |
+{ |
+ bool result = defaultValue; |
+ getBoolean(name, &result); |
+ return result; |
+} |
+ |
void JSONObjectBase::remove(const String& name) |
{ |
m_data.remove(name); |