summaryrefslogtreecommitdiffstats
path: root/base/bind_internal.h.pump
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 08:28:14 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 08:28:14 +0000
commit8cf362c47537537f8f42cce51cf012e37b7ed15b (patch)
tree9051287133265f106bc7e5f4980399b3548058ab /base/bind_internal.h.pump
parent39cf85204d923c48f824b205f7a4e905d7ba9620 (diff)
downloadchromium_src-8cf362c47537537f8f42cce51cf012e37b7ed15b.zip
chromium_src-8cf362c47537537f8f42cce51cf012e37b7ed15b.tar.gz
chromium_src-8cf362c47537537f8f42cce51cf012e37b7ed15b.tar.bz2
Add DCHECK to avoid binding values to null callbacks
BUG=161714 TEST=base_unittests Review URL: https://chromiumcodereview.appspot.com/11419061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/bind_internal.h.pump')
-rw-r--r--base/bind_internal.h.pump1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/bind_internal.h.pump b/base/bind_internal.h.pump
index 0712027..ac228e6e 100644
--- a/base/bind_internal.h.pump
+++ b/base/bind_internal.h.pump
@@ -258,6 +258,7 @@ MakeRunnable(const IgnoreResultHelper<T>& t) {
template <typename T>
const typename FunctorTraits<Callback<T> >::RunnableType&
MakeRunnable(const Callback<T>& t) {
+ DCHECK(!t.is_null());
return t;
}