summaryrefslogtreecommitdiffstats
path: root/base/shared_memory_win.cc
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:48:05 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:48:05 +0000
commit5d2b449b4f0b3d13c75e540c834c550ed38c0912 (patch)
tree6224e6d93676677f19fb03e7d80b46ea15dcf3b5 /base/shared_memory_win.cc
parentc4e678d0902b04606ff2a21714e33643d01a74ed (diff)
downloadchromium_src-5d2b449b4f0b3d13c75e540c834c550ed38c0912.zip
chromium_src-5d2b449b4f0b3d13c75e540c834c550ed38c0912.tar.gz
chromium_src-5d2b449b4f0b3d13c75e540c834c550ed38c0912.tar.bz2
More DCHECK() updates. A mixture of _EQ and _GE.
Bug=58409 Review URL: http://codereview.chromium.org/6469070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory_win.cc')
-rw-r--r--base/shared_memory_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/shared_memory_win.cc b/base/shared_memory_win.cc
index 15c61dd..526132c 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;