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

Unified Diff: base/rand_util_posix.cc

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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: base/rand_util_posix.cc
===================================================================
--- base/rand_util_posix.cc (revision 106774)
+++ base/rand_util_posix.cc (working copy)
@@ -23,7 +23,7 @@
public:
URandomFd() {
fd_ = open("/dev/urandom", O_RDONLY);
- CHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
+ DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
}
~URandomFd() {
@@ -49,7 +49,7 @@
bool success = file_util::ReadFromFD(urandom_fd,
reinterpret_cast<char*>(&number),
sizeof(number));
- CHECK(success);
+ DCHECK(success);
jar (doing other things) 2011/10/23 00:36:28 I think this is worth leaving as a CHECK. Random
return number;
}

Powered by Google App Engine
This is Rietveld 408576698