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

Unified Diff: Source/platform/PlatformInstrumentation.h

Issue 342513003: Don't allow direct const char* trace value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Subset Created 6 years, 6 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 | « Source/core/frame/FrameView.cpp ('k') | Source/platform/TraceEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformInstrumentation.h
diff --git a/Source/platform/PlatformInstrumentation.h b/Source/platform/PlatformInstrumentation.h
index 4fe5087c4cc49d4f714ef1c5512d5e960b01d358..2397dfe4e6272e39145ad2a874456ba72402f204 100644
--- a/Source/platform/PlatformInstrumentation.h
+++ b/Source/platform/PlatformInstrumentation.h
@@ -89,7 +89,7 @@ private:
inline void PlatformInstrumentation::willDecodeImage(const String& imageType)
{
- TRACE_EVENT_BEGIN1(CategoryName, ImageDecodeEvent, ImageTypeArgument, TRACE_STR_COPY(imageType.ascii().data()));
+ TRACE_EVENT_BEGIN1(CategoryName, ImageDecodeEvent, ImageTypeArgument, imageType.ascii());
FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD();
m_client->willDecodeImage(imageType);
}
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698