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

Unified Diff: src/libsampler/sampler.h

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Fix one last unused variable error 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
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(&registered_); }
+ bool IsRegistered() const { return base::NoBarrier_Load(&registered_) != 0; }
void DoSample();
« src/compiler/gap-resolver.cc ('K') | « src/interpreter/bytecodes.h ('k') | src/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698