Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: third_party/WebKit/Source/platform/JSONValues.cpp

Issue 1621923002: [DevTools] Remove InspectorState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: to JSONObject Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698