Index: webkit/child/webkitplatformsupport_impl.cc |
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc |
index 398b45c1c5c05d976be73cad1386f3ee9a0d98ff..92d7ad60ba278e2bb7a976043b25a0292b49c13c 100644 |
--- a/webkit/child/webkitplatformsupport_impl.cc |
+++ b/webkit/child/webkitplatformsupport_impl.cc |
@@ -490,11 +490,20 @@ blink::Platform::TraceEventHandle WebKitPlatformSupportImpl::addTraceEvent( |
return result; |
} |
+// TODO(wangxianzhu): Remove this. |
void WebKitPlatformSupportImpl::updateTraceEventDuration( |
TraceEventHandle handle) { |
+ updateTraceEventDuration(NULL, NULL, handle); |
+} |
+ |
+void WebKitPlatformSupportImpl::updateTraceEventDuration( |
+ const unsigned char* category_group_enabled, |
+ const char* name, |
+ TraceEventHandle handle) { |
base::debug::TraceEventHandle traceEventHandle; |
memcpy(&traceEventHandle, &handle, sizeof(handle)); |
- TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(traceEventHandle); |
+ TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( |
+ category_group_enabled, name, traceEventHandle); |
} |
namespace { |