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

Unified Diff: content/browser/tracing/file_tracing_provider_impl.cc

Issue 1149083012: Simplify file tracing end events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 5 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 | « content/browser/tracing/file_tracing_provider_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/tracing/file_tracing_provider_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698