diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-17 09:25:23 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-17 09:25:23 +0000 |
commit | 8c65df9376d50676f91d8540a42e28ff39955162 (patch) | |
tree | 9add70898490fe0f313973276503c42f0aad4ab6 /base | |
parent | be94321f75d6d04124c99adbc95b9dda33ee7677 (diff) | |
download | chromium_src-8c65df9376d50676f91d8540a42e28ff39955162.zip chromium_src-8c65df9376d50676f91d8540a42e28ff39955162.tar.gz chromium_src-8c65df9376d50676f91d8540a42e28ff39955162.tar.bz2 |
Use DCHECK_EQ(x, y) instead of DCHECK in ObjectWatcher::StopWatching.
Partially motivated by http://crbug.com/258764. If the DCHECK fails
right now, the output is not particularly helpful. With DCHECK_EQ, it
will be easier to see if the memory is uninitialized, freed, or
something else.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/19455002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/win/object_watcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/win/object_watcher.cc b/base/win/object_watcher.cc index 6d24bef..078f5b9 100644 --- a/base/win/object_watcher.cc +++ b/base/win/object_watcher.cc @@ -60,7 +60,7 @@ bool ObjectWatcher::StopWatching() { return false; // Make sure ObjectWatcher is used in a single-threaded fashion. - DCHECK(origin_loop_ == MessageLoop::current()); + DCHECK_EQ(origin_loop_, MessageLoop::current()); // Blocking call to cancel the wait. Any callbacks already in progress will // finish before we return from this call. |