diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 07:53:25 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 07:53:25 +0000 |
commit | 353e08bea34b776a5c79330ddba0749288556c35 (patch) | |
tree | d6c2bb13b74ced4ed525d36ab1ae1acd1e9c77d3 /base/message_loop.h | |
parent | dd3eac25b4b1600058cfb88a45fdc3be5dbf52a6 (diff) | |
download | chromium_src-353e08bea34b776a5c79330ddba0749288556c35.zip chromium_src-353e08bea34b776a5c79330ddba0749288556c35.tar.gz chromium_src-353e08bea34b776a5c79330ddba0749288556c35.tar.bz2 |
Disable this DCHECK since too many consumers expect to be able to
call this when there is no MessageLoop for the current thread.
TBR=jabdelmalek
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r-- | base/message_loop.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 43faf4a..b4e84e6 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -193,7 +193,9 @@ class MessageLoop : public base::MessagePump::Delegate { // Returns the MessageLoop object for the current thread, or null if none. static MessageLoop* current() { MessageLoop* loop = static_cast<MessageLoop*>(tls_index_.Get()); - DCHECK(loop) << "Ouch, did you forget to initialize me?"; + // TODO(darin): sadly, we cannot enable this yet since people call us even + // when they have no intention of using us. + //DCHECK(loop) << "Ouch, did you forget to initialize me?"; return loop; } |