Index: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
index 1c6ef73e8ca8f7c1bc91086fb677ab7eae86b991..b1c17661dde0d5b33429544cfce82b2a823d84a5 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
@@ -25,6 +25,7 @@ |
#include "core/inspector/InspectorCSSAgent.h" |
#include "core/inspector/InspectorDOMAgent.h" |
#include "core/inspector/InspectorStyleSheet.h" |
+#include "core/inspector/V8InspectorString.h" |
#include "platform/Decimal.h" |
#include "platform/animation/TimingFunction.h" |
#include "platform/v8_inspector/public/V8InspectorSession.h" |
@@ -373,8 +374,9 @@ void InspectorAnimationAgent::resolveAnimation(ErrorString* errorString, const S |
} |
ScriptState::Scope scope(scriptState); |
- m_v8Session->releaseObjectGroup("animation"); |
- *result = m_v8Session->wrapObject(scriptState->context(), toV8(animation, scriptState->context()->Global(), scriptState->isolate()), "animation"); |
+ static const char kAnimationObjectGroup[] = "animation"; |
+ m_v8Session->releaseObjectGroup(toV8InspectorStringView(kAnimationObjectGroup)); |
+ *result = m_v8Session->wrapObject(scriptState->context(), toV8(animation, scriptState->context()->Global(), scriptState->isolate()), toV8InspectorStringView(kAnimationObjectGroup)); |
if (!*result) |
*errorString = "Element not associated with a document."; |
} |