Index: Source/core/inspector/InspectorBaseAgent.h |
diff --git a/Source/core/inspector/InspectorBaseAgent.h b/Source/core/inspector/InspectorBaseAgent.h |
index 20c53b641cce964c4caba20c6836dddf7f73ba9d..38a3b92ec35749a4c1fd4b6c670134fbd254d23b 100644 |
--- a/Source/core/inspector/InspectorBaseAgent.h |
+++ b/Source/core/inspector/InspectorBaseAgent.h |
@@ -109,6 +109,11 @@ protected: |
} |
}; |
+inline bool asBool(const bool* const b, bool defaultValue = false) |
+{ |
+ return b ? *b : defaultValue; |
+} |
+ |
} // namespace blink |
#endif // !defined(InspectorBaseAgent_h) |