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.
4
5#include "base/threading/non_thread_safe_impl.h"
6
7#include "base/logging.h"
8
9namespace base {
10
11bool NonThreadSafeImpl::CalledOnValidThread() const {
12  return thread_checker_.CalledOnValidThread();
13}
14
15NonThreadSafeImpl::~NonThreadSafeImpl() {
16  DCHECK(CalledOnValidThread());
17}
18
19void NonThreadSafeImpl::DetachFromThread() {
20  thread_checker_.DetachFromThread();
21}
22
23}  // namespace base
24