aboutsummaryrefslogtreecommitdiff
path: root/third_party/chromium/base/callback_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/chromium/base/callback_internal.h')
-rw-r--r--third_party/chromium/base/callback_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/chromium/base/callback_internal.h b/third_party/chromium/base/callback_internal.h
index d700794..7cec0bc 100644
--- a/third_party/chromium/base/callback_internal.h
+++ b/third_party/chromium/base/callback_internal.h
@@ -65,6 +65,7 @@ class BASE_EXPORT CallbackBase<CopyMode::MoveOnly> {
// Returns true if Callback is null (doesn't refer to anything).
bool is_null() const { return bind_state_.get() == NULL; }
+ explicit operator bool() const { return !is_null(); }
// Returns the Callback into an uninitialized state.
void Reset();