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

Unified Diff: third_party/WebKit/Source/platform/TracedValue.cpp

Issue 1381023002: NOCOMMIT: Blink tracing now uses base Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/platform/TracedValue.cpp
diff --git a/third_party/WebKit/Source/platform/TracedValue.cpp b/third_party/WebKit/Source/platform/TracedValue.cpp
index 96e4010eea705c80a66227f83369063a9e257dbc..f35dfc7b0996223f8a2403bdf4ae05bcbc4a6612 100644
--- a/third_party/WebKit/Source/platform/TracedValue.cpp
+++ b/third_party/WebKit/Source/platform/TracedValue.cpp
@@ -166,9 +166,9 @@ private:
Vector<String> m_order;
};
-PassRefPtr<TracedValue> TracedValue::create()
+scoped_refptr<TracedValue> TracedValue::create()
{
- return adoptRef(new TracedValue());
+ return new TracedValue();
}
TracedValue::TracedValue()
@@ -263,12 +263,12 @@ void TracedValue::endArray()
m_stack.removeLast();
}
-String TracedValue::asTraceFormat() const
+void TracedValue::AppendAsTraceFormat(std::string* out) const
{
ASSERT(m_stack.size() == 1);
StringBuilder builder;
m_stack.first()->toJSON(&builder);
- return builder.toString();
+ *out = builder.toString().utf8().data();
}
TracedDictionaryValue* TracedValue::currentDictionary() const
« no previous file with comments | « third_party/WebKit/Source/platform/TracedValue.h ('k') | third_party/WebKit/Source/platform/blink_platform.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698