diff options
-rw-r--r-- | base/win/object_watcher.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/win/object_watcher.cc b/base/win/object_watcher.cc index 6b500cd..ebe596f 100644 --- a/base/win/object_watcher.cc +++ b/base/win/object_watcher.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -24,6 +24,7 @@ ObjectWatcher::~ObjectWatcher() { } bool ObjectWatcher::StartWatching(HANDLE object, Delegate* delegate) { + CHECK(delegate); if (wait_object_) { NOTREACHED() << "Already watching an object"; return false; |