summaryrefslogtreecommitdiffstats
path: root/base/event_recorder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/event_recorder.cc')
-rw-r--r--base/event_recorder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/event_recorder.cc b/base/event_recorder.cc
index 7c3336b..1119b4f 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";