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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styling Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
index a3c9fe2654d5c82908ee166595cd93cbb9101f21..23301c82b7e3635cb505f73ca5a96aad9429505c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
@@ -11,6 +11,7 @@
#include "core/dom/ScriptableDocumentParser.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/inspector/ThreadDebugger.h"
+#include "core/inspector/V8InspectorString.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TracedValue.h"
#include "platform/v8_inspector/public/V8Inspector.h"
@@ -103,7 +104,7 @@ std::unique_ptr<SourceLocation> SourceLocation::create(const String& url, unsign
std::unique_ptr<SourceLocation> SourceLocation::createFromNonEmptyV8StackTrace(std::unique_ptr<v8_inspector::V8StackTrace> stackTrace, int scriptId)
{
// Retrieve the data before passing the ownership to SourceLocation.
- const String& url = stackTrace->topSourceURL();
+ String url = toCoreString(stackTrace->topSourceURL());
unsigned lineNumber = stackTrace->topLineNumber();
unsigned columnNumber = stackTrace->topColumnNumber();
return wrapUnique(new SourceLocation(url, lineNumber, columnNumber, std::move(stackTrace), scriptId));
@@ -145,9 +146,9 @@ void SourceLocation::toTracedValue(TracedValue* value, const char* name) const
return;
value->beginArray(name);
value->beginDictionary();
- value->setString("functionName", m_stackTrace->topFunctionName());
- value->setString("scriptId", m_stackTrace->topScriptId());
- value->setString("url", m_stackTrace->topSourceURL());
+ value->setString("functionName", toCoreString(m_stackTrace->topFunctionName()));
+ value->setString("scriptId", toCoreString(m_stackTrace->topScriptId()));
+ value->setString("url", toCoreString(m_stackTrace->topSourceURL()));
value->setInteger("lineNumber", m_stackTrace->topLineNumber());
value->setInteger("columnNumber", m_stackTrace->topColumnNumber());
value->endDictionary();
@@ -168,7 +169,7 @@ String SourceLocation::toString() const
{
if (!m_stackTrace)
return String();
- return m_stackTrace->toString();
+ return toCoreString(m_stackTrace->toString());
}
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698