commit | 6801e6c1ddd1b7b73e594e97157ddd539ca335d7 | [log] [tgz] |
---|---|---|
author | Yannic Bonenberger <[email protected]> | Fri Jun 07 10:42:53 2019 |
committer | Commit Bot <[email protected]> | Fri Jun 07 10:42:53 2019 |
tree | c0d24ff735da386106681ba2ba0ddc35401eba66 | |
parent | 21f9de79b0e3e95f855b3e648a6af9f48af25935 [diff] [blame] |
[base] Include clang_coverage.h only if use_clang_coverage is enabled. base::WriteClangCoverageProfile() must only be called if the buildflag |use_clang_coverage| is set to true. This CL enforced that by requiring that the corresponding header can only be included if CLANG_COVERAGE is enabled. Change-Id: I473694c05d8e27206d7f849e3ae4d83ba6fd5d6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640397 Reviewed-by: Wez <[email protected]> Commit-Queue: Yannic Bonenberger <[email protected]> Cr-Commit-Position: refs/heads/master@{#667076}
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc index 38ee542e..9636d44 100644 --- a/base/process/process_posix.cc +++ b/base/process/process_posix.cc
@@ -16,7 +16,6 @@ #include "base/logging.h" #include "base/posix/eintr_wrapper.h" #include "base/process/kill.h" -#include "base/test/clang_coverage.h" #include "base/threading/thread_restrictions.h" #include "build/build_config.h" @@ -24,6 +23,10 @@ #include <sys/event.h> #endif +#if BUILDFLAG(CLANG_COVERAGE) +#include "base/test/clang_coverage.h" +#endif + namespace { #if !defined(OS_NACL_NONSFI)