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

Unified Diff: third_party/WebKit/Source/wtf/LeakAnnotations.h

Issue 2745533006: Remove blink-specific global lsan define. (Closed)
Patch Set: Created 3 years, 9 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 | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/LeakAnnotations.h
diff --git a/third_party/WebKit/Source/wtf/LeakAnnotations.h b/third_party/WebKit/Source/wtf/LeakAnnotations.h
index ff41dbae0a949aa6e388c6a153122eb0c47c8e13..d218794d9dcf0d063fb94b196a448ea809d0f91f 100644
--- a/third_party/WebKit/Source/wtf/LeakAnnotations.h
+++ b/third_party/WebKit/Source/wtf/LeakAnnotations.h
@@ -36,14 +36,14 @@
// and allocations to be registered as exempted from LSan consideration.
#include "wtf/Noncopyable.h"
-#if USE(LEAK_SANITIZER)
+#if defined(LEAK_SANITIZER)
#include "wtf/AddressSanitizer.h"
#include "wtf/TypeTraits.h"
#endif
namespace WTF {
-#if USE(LEAK_SANITIZER)
+#if defined(LEAK_SANITIZER)
class LeakSanitizerDisabler {
WTF_MAKE_NONCOPYABLE(LeakSanitizerDisabler);
@@ -135,7 +135,7 @@ class RegisterStaticLocalReference<T, true> {
#define WTF_INTERNAL_LEAK_SANITIZER_DISABLED_SCOPE
#define LEAK_SANITIZER_IGNORE_OBJECT(X) ((void)0)
#define LEAK_SANITIZER_REGISTER_STATIC_LOCAL(Type, Object) Object
-#endif // USE(LEAK_SANITIZER)
+#endif // defined(LEAK_SANITIZER)
} // namespace WTF
« no previous file with comments | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698