Index: Source/core/inspector/InspectorRuntimeAgent.cpp |
diff --git a/Source/core/inspector/InspectorRuntimeAgent.cpp b/Source/core/inspector/InspectorRuntimeAgent.cpp |
index 063223e6856f64028df1d220fd70548742c96de4..eb3bdca51e988e5f6fe010e0796467fb0d186217 100644 |
--- a/Source/core/inspector/InspectorRuntimeAgent.cpp |
+++ b/Source/core/inspector/InspectorRuntimeAgent.cpp |
@@ -46,11 +46,6 @@ namespace InspectorRuntimeAgentState { |
static const char runtimeEnabled[] = "runtimeEnabled"; |
}; |
-static bool asBool(const bool* const b) |
-{ |
- return b ? *b : false; |
-} |
- |
InspectorRuntimeAgent::InspectorRuntimeAgent(InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer) |
: InspectorBaseAgent<InspectorRuntimeAgent>("Runtime") |
, m_enabled(false) |
@@ -134,10 +129,9 @@ void InspectorRuntimeAgent::getProperties(ErrorString* errorString, const String |
ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = setPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExceptions); |
muteConsole(); |
- bool accessorPropertiesOnlyValue = accessorPropertiesOnly && *accessorPropertiesOnly; |
- injectedScript.getProperties(errorString, objectId, ownProperties && *ownProperties, accessorPropertiesOnlyValue, &result); |
+ injectedScript.getProperties(errorString, objectId, asBool(ownProperties), asBool(accessorPropertiesOnly), &result); |
- if (!accessorPropertiesOnlyValue) |
+ if (!asBool(accessorPropertiesOnly)) |
injectedScript.getInternalProperties(errorString, objectId, &internalProperties); |
unmuteConsole(); |