diff options
Diffstat (limited to 'chromium/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc')
-rw-r--r-- | chromium/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/chromium/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc b/chromium/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc deleted file mode 100644 index ee06dd05dd5..00000000000 --- a/chromium/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h" - -namespace impl { - -// static -void RefcountedBrowserContextKeyedServiceTraits::Destruct( - const RefcountedBrowserContextKeyedService* obj) { - if (obj->requires_destruction_on_thread_ && - !content::BrowserThread::CurrentlyOn(obj->thread_id_)) { - content::BrowserThread::DeleteSoon(obj->thread_id_, FROM_HERE, obj); - } else { - delete obj; - } -} - -} // namespace impl - -RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService() - : requires_destruction_on_thread_(false), - thread_id_(content::BrowserThread::UI) { -} - -RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService( - const content::BrowserThread::ID thread_id) - : requires_destruction_on_thread_(true), - thread_id_(thread_id) { -} - -RefcountedBrowserContextKeyedService::~RefcountedBrowserContextKeyedService() {} - |