mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
win: Add ENABLE_BASE_TRACING check to fix cef_sandbox build
This commit is contained in:
17
patch/patches/base_task_4015625.patch
Normal file
17
patch/patches/base_task_4015625.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
diff --git base/task/common/task_annotator.cc base/task/common/task_annotator.cc
|
||||
index 289d1d1f1bd88..b9ed6e32fdc44 100644
|
||||
--- base/task/common/task_annotator.cc
|
||||
+++ base/task/common/task_annotator.cc
|
||||
@@ -292,6 +292,12 @@ TaskAnnotator::LongTaskTracker::~LongTaskTracker() {
|
||||
perfetto::Track::ThreadScoped(task_annotator_),
|
||||
task_end_time);
|
||||
}
|
||||
+#if !BUILDFLAG(ENABLE_BASE_TRACING)
|
||||
+ // Suppress the unused variable warning when TRACE_EVENT macros are turned
|
||||
+ // into no-op.
|
||||
+ (void)pending_task_;
|
||||
+ (void)task_annotator_;
|
||||
+#endif // !BUILDFLAG(ENABLE_BASE_TRACING)
|
||||
}
|
||||
|
||||
void TaskAnnotator::LongTaskTracker::SetIpcDetails(const char* interface_name,
|
Reference in New Issue
Block a user