diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 00:41:12 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 00:41:12 +0000 |
commit | e150c038b4bc92ce5518688737d32bc5208fa250 (patch) | |
tree | 55049a108f68c9804276c4603f0f0c6c32c12589 /base/rand_util_posix.cc | |
parent | 2a040cd88b04d101c2b1612c6c3c92cb6f68176b (diff) | |
download | chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.zip chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.tar.gz chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.tar.bz2 |
Reland r40289: "Add support for CHECK_* macros.""
Make sure DEFINE_CHECK_OP_IMPL isn't omitted for official builds.
Review URL: http://codereview.chromium.org/661325
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util_posix.cc')
-rw-r--r-- | base/rand_util_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc index a2bdeb8..c65551d 100644 --- a/base/rand_util_posix.cc +++ b/base/rand_util_posix.cc @@ -22,7 +22,7 @@ class URandomFd { public: URandomFd() { fd_ = open("/dev/urandom", O_RDONLY); - CHECK(fd_ >= 0) << "Cannot open /dev/urandom: " << errno; + CHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno; } ~URandomFd() { |