Chromium Code Reviews| Index: Source/core/inspector/PageDebuggerAgent.cpp |
| diff --git a/Source/core/inspector/PageDebuggerAgent.cpp b/Source/core/inspector/PageDebuggerAgent.cpp |
| index 8f22a25f7ef14cdf4193c61649624a3e9ac0d0ee..cb70c5c94c781a7f6303dcd023f13a59ec1d90f7 100644 |
| --- a/Source/core/inspector/PageDebuggerAgent.cpp |
| +++ b/Source/core/inspector/PageDebuggerAgent.cpp |
| @@ -185,15 +185,11 @@ void PageDebuggerAgent::runScript(ErrorString* errorString, const ScriptId& scri |
| String sourceURL = m_compiledScriptURLs.take(scriptId); |
| LocalFrame* frame = toDocument(executionContext)->frame(); |
| TRACE_EVENT1("devtools.timeline", "EvaluateScript", "data", InspectorEvaluateScriptEvent::data(frame, sourceURL, TextPosition::minimumPosition().m_line.oneBasedInt())); |
| - InspectorInstrumentationCookie cookie; |
| - if (frame) |
| - cookie = InspectorInstrumentation::willEvaluateScript(frame); |
| + InspectorInstrumentation::willEvaluateScript(executionContext); |
|
dgozman
2015/08/29 00:04:39
Remove this.
yurys
2015/08/29 00:14:24
Done.
|
| RefPtrWillBeRawPtr<LocalFrame> protect(frame); |
| InspectorDebuggerAgent::runScript(errorString, scriptId, executionContextId, objectGroup, doNotPauseOnExceptionsAndMuteConsole, result, exceptionDetails); |
| - if (frame) |
| - InspectorInstrumentation::didEvaluateScript(cookie); |
| TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data()); |
| } |