Index: base/memory/ref_counted_delete_on_sequence.h |
diff --git a/base/memory/ref_counted_delete_on_sequence.h b/base/memory/ref_counted_delete_on_sequence.h |
index a7600f9f8546068f5bcba4b124e61d0e95b1c6c7..2be035ce16d9967f7b40b446a702244e6b99be7d 100644 |
--- a/base/memory/ref_counted_delete_on_sequence.h |
+++ b/base/memory/ref_counted_delete_on_sequence.h |
@@ -33,10 +33,14 @@ namespace base { |
template <class T> |
class RefCountedDeleteOnSequence : public subtle::RefCountedThreadSafeBase { |
public: |
+ static constexpr subtle::StartRefCountFromZeroTag kRefCountPreference = |
+ subtle::kStartRefCountFromZeroTag; |
+ |
// A SequencedTaskRunner for the current sequence can be acquired by calling |
// SequencedTaskRunnerHandle::Get(). |
RefCountedDeleteOnSequence(scoped_refptr<SequencedTaskRunner> task_runner) |
- : task_runner_(std::move(task_runner)) { |
+ : subtle::RefCountedThreadSafeBase(T::kRefCountPreference), |
+ task_runner_(std::move(task_runner)) { |
DCHECK(task_runner_); |
} |