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

Unified Diff: base/shared_memory_win.cc

Issue 6469070: More DCHECK() updates. A mixture of _EQ and _GE. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updating pickle.h order Created 9 years, 10 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 | « base/shared_memory_posix.cc ('k') | base/synchronization/condition_variable_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/shared_memory_win.cc
diff --git a/base/shared_memory_win.cc b/base/shared_memory_win.cc
index 15c61ddf00def5295ffb857cd1082d82c27c4551..526132c28517f90591c3d740372dd44b5e50166d 100644
--- a/base/shared_memory_win.cc
+++ b/base/shared_memory_win.cc
@@ -80,7 +80,7 @@ bool SharedMemory::CreateAnonymous(uint32 size) {
bool SharedMemory::CreateNamed(const std::string& name,
bool open_existing, uint32 size) {
- DCHECK(mapped_file_ == NULL);
+ DCHECK(!mapped_file_);
if (size == 0)
return false;
@@ -119,7 +119,7 @@ bool SharedMemory::Delete(const std::string& name) {
}
bool SharedMemory::Open(const std::string& name, bool read_only) {
- DCHECK(mapped_file_ == NULL);
+ DCHECK(!mapped_file_);
name_ = ASCIIToWide(name);
read_only_ = read_only;
« no previous file with comments | « base/shared_memory_posix.cc ('k') | base/synchronization/condition_variable_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698