| Index: content/browser/tracing/file_tracing_provider_impl.cc
|
| diff --git a/content/browser/tracing/file_tracing_provider_impl.cc b/content/browser/tracing/file_tracing_provider_impl.cc
|
| index 21fcf07b5d908df74fb5ebc301caf035904cd97f..5406231bbf7cca8ccda2af7db6fcde9bd75375a9 100644
|
| --- a/content/browser/tracing/file_tracing_provider_impl.cc
|
| +++ b/content/browser/tracing/file_tracing_provider_impl.cc
|
| @@ -32,24 +32,12 @@ void FileTracingProviderImpl::FileTracingDisable(void* id) {
|
|
|
| void FileTracingProviderImpl::FileTracingEventBegin(
|
| const char* name, void* id, const base::FilePath& path, int64 size) {
|
| - if (size) {
|
| - TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(kFileTracingEventCategoryGroup, name, id,
|
| - "path", path.AsUTF8Unsafe(), "size", size);
|
| - } else {
|
| - TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(kFileTracingEventCategoryGroup, name, id,
|
| - "path", path.AsUTF8Unsafe());
|
| - }
|
| + TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(kFileTracingEventCategoryGroup, name, id,
|
| + "path", path.AsUTF8Unsafe(), "size", size);
|
| }
|
|
|
| -void FileTracingProviderImpl::FileTracingEventEnd(
|
| - const char* name, void* id, const base::FilePath& path, int64 size) {
|
| - if (size) {
|
| - TRACE_EVENT_NESTABLE_ASYNC_END2(kFileTracingEventCategoryGroup, name, id,
|
| - "path", path.AsUTF8Unsafe(), "size", size);
|
| - } else {
|
| - TRACE_EVENT_NESTABLE_ASYNC_END1(kFileTracingEventCategoryGroup, name, id,
|
| - "path", path.AsUTF8Unsafe());
|
| - }
|
| +void FileTracingProviderImpl::FileTracingEventEnd(const char* name, void* id) {
|
| + TRACE_EVENT_NESTABLE_ASYNC_END0(kFileTracingEventCategoryGroup, name, id);
|
| }
|
|
|
| } // namespace content
|
|
|