Index: src/libsampler/sampler.h |
diff --git a/src/libsampler/sampler.h b/src/libsampler/sampler.h |
index 7ae3c8c4766d8b2f6f630e7df592d4fd363204c8..311d577e1e4ecc66a342ad218f4586bd51d975be 100644 |
--- a/src/libsampler/sampler.h |
+++ b/src/libsampler/sampler.h |
@@ -53,12 +53,12 @@ class Sampler { |
void DecreaseProfilingDepth(); |
// Whether the sampler is running (that is, consumes resources). |
- bool IsActive() const { return base::NoBarrier_Load(&active_); } |
+ bool IsActive() const { return base::NoBarrier_Load(&active_) != 0; } |
// CpuProfiler collects samples by calling DoSample directly |
// without calling Start. To keep it working, we register the sampler |
// with the CpuProfiler. |
- bool IsRegistered() const { return base::NoBarrier_Load(®istered_); } |
+ bool IsRegistered() const { return base::NoBarrier_Load(®istered_) != 0; } |
void DoSample(); |