Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1315)

Unified Diff: base/callback_internal.h

Issue 2723423002: Start BindStateBase ref count from 1 instead of 0 (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/callback_internal.h
diff --git a/base/callback_internal.h b/base/callback_internal.h
index 8ae606749e1e170c8a5bbd192f6ff3c28c8bdf6b..61706b0d19dcb4a491b91359af0d13e05aa662d9 100644
--- a/base/callback_internal.h
+++ b/base/callback_internal.h
@@ -45,6 +45,9 @@ struct BindStateBaseRefCountTraits {
class BASE_EXPORT BindStateBase
: public RefCountedThreadSafe<BindStateBase, BindStateBaseRefCountTraits> {
public:
+ static constexpr subtle::StartRefCountFromOneTag kRefCountPreference =
+ subtle::kStartRefCountFromOneTag;
+
using InvokeFuncStorage = void(*)();
private:
« no previous file with comments | « base/BUILD.gn ('k') | base/callback_internal.cc » ('j') | base/memory/ref_counted_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698