Index: base/event_recorder.cc |
diff --git a/base/event_recorder.cc b/base/event_recorder.cc |
index 7c3336bde83d1020c2f39ae53e49ce79e81963d4..1119b4f57c0e676bff7ae3a34ee7f3b71f3461e6 100644 |
--- a/base/event_recorder.cc |
+++ b/base/event_recorder.cc |
@@ -49,7 +49,7 @@ bool EventRecorder::StartRecording(const FilePath& filename) { |
return false; |
// Open the recording file. |
- DCHECK(file_ == NULL); |
+ DCHECK(!file_); |
file_ = file_util::OpenFile(filename, "wb+"); |
if (!file_) { |
DLOG(ERROR) << "EventRecorder could not open log file"; |
@@ -100,7 +100,7 @@ bool EventRecorder::StartPlayback(const FilePath& filename) { |
return false; |
// Open the recording file. |
- DCHECK(file_ == NULL); |
+ DCHECK(!file_); |
file_ = file_util::OpenFile(filename, "rb"); |
if (!file_) { |
DLOG(ERROR) << "EventRecorder Playback could not open log file"; |