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

Side by Side Diff: third_party/WebKit/Source/platform/tracing/TracedValue.cpp

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/TracedValue.h" 5 #include "platform/tracing/TracedValue.h"
6 6
7 #include "base/trace_event/trace_event_argument.h" 7 #include "base/trace_event/trace_event_argument.h"
8 #include "wtf/PtrUtil.h" 8 #include "wtf/PtrUtil.h"
9 #include "wtf/text/StringUTF8Adaptor.h" 9 #include "wtf/text/StringUTF8Adaptor.h"
10 #include <memory> 10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 std::unique_ptr<TracedValue> TracedValue::create() 14 std::unique_ptr<TracedValue> TracedValue::create()
15 { 15 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 String TracedValue::toString() const 114 String TracedValue::toString() const
115 { 115 {
116 ASSERT(m_tracedValue.get()); 116 ASSERT(m_tracedValue.get());
117 std::string out; 117 std::string out;
118 m_tracedValue->AppendAsTraceFormat(&out); 118 m_tracedValue->AppendAsTraceFormat(&out);
119 return String::fromUTF8(out.c_str()); 119 return String::fromUTF8(out.c_str());
120 } 120 }
121 121
122 } // namespace blink 122 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698