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

Unified Diff: base/debug/profiler.cc

Issue 2013723004: Fix a couple of pointer DCHECKs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/profiler.cc
diff --git a/base/debug/profiler.cc b/base/debug/profiler.cc
index a4426ab3072af7bfa942141db40ce88e7a30b5d1..b19e7ecd00fcdf5431b4fc6ada16ab44852d6a3f 100644
--- a/base/debug/profiler.cc
+++ b/base/debug/profiler.cc
@@ -154,8 +154,8 @@ bool FindResolutionFunctionInImports(
FunctionSearchContext* context =
reinterpret_cast<FunctionSearchContext*>(cookie);
- DCHECK_NE(nullptr, context);
- DCHECK_EQ(nullptr, context->function);
+ DCHECK(context);
+ DCHECK(!context->function);
// Our import address table contains pointers to the functions we import
// at this point. Let's retrieve the first such function and use it to
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698