Commit fb31a890 authored by Omer Katz's avatar Omer Katz Committed by Commit Bot

heap: Fix usage of CreateFromHere in persistent.h

This was broken by http://crrev.com/731804

Bug: 974061
Change-Id: Ic6855a24a4c58d42dcbeec078741e02880ee3d9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2074219Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744637}
parent 2d19d255
......@@ -39,10 +39,16 @@ class PersistentLocation final {
base::Location location_;
};
#if BUILDFLAG(RAW_HEAP_SNAPSHOTS)
#if !BUILDFLAG(FROM_HERE_USES_LOCATION_BUILTINS) && \
BUILDFLAG(RAW_HEAP_SNAPSHOTS)
#if !BUILDFLAG(ENABLE_LOCATION_SOURCE)
#define PERSISTENT_FROM_HERE \
PersistentLocation(::base::Location::CreateFromHere(__FILE__))
#else
#define PERSISTENT_FROM_HERE \
PersistentLocation( \
::base::Location::CreateFromHere(__func__, __FILE__, __LINE__))
#endif
#else
#define PERSISTENT_FROM_HERE PersistentLocation()
#endif // BUILDFLAG(RAW_HEAP_SNAPSHOTS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment