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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp

Issue 2001333003: Switch some clients of ScriptCallStack to SourceLocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1997293002
Patch Set: rebased Created 4 years, 7 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/core/inspector/InspectorResourceAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
index 8975ecc6f4be37a0c2312b12119b89559684d987..85cfd98d7a9f346260b0adea8eed96e226565b22 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
@@ -31,7 +31,7 @@
#include "core/inspector/InspectorResourceAgent.h"
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
-#include "bindings/core/v8/ScriptCallStack.h"
+#include "bindings/core/v8/SourceLocation.h"
#include "core/dom/Document.h"
#include "core/dom/ScriptableDocumentParser.h"
#include "core/fetch/FetchInitiatorInfo.h"
@@ -788,7 +788,7 @@ void InspectorResourceAgent::didScheduleStyleRecalculation(Document* document)
PassOwnPtr<protocol::Network::Initiator> InspectorResourceAgent::buildInitiatorObject(Document* document, const FetchInitiatorInfo& initiatorInfo)
{
- RefPtr<ScriptCallStack> stackTrace = ScriptCallStack::capture();
+ OwnPtr<V8StackTrace> stackTrace = SourceLocation::capture(document)->takeStackTrace();
if (stackTrace) {
OwnPtr<protocol::Network::Initiator> initiatorObject = protocol::Network::Initiator::create()
.setType(protocol::Network::Initiator::TypeEnum::Script).build();

Powered by Google App Engine
This is Rietveld 408576698