1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/threading/non_thread_safe_impl.h"
7 #include "base/logging.h"
11 bool NonThreadSafeImpl::CalledOnValidThread() const {
12 return thread_checker_
.CalledOnValidThread();
15 NonThreadSafeImpl::~NonThreadSafeImpl() {
16 DCHECK(CalledOnValidThread());
19 void NonThreadSafeImpl::DetachFromThread() {
20 thread_checker_
.DetachFromThread();