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

Side by Side Diff: components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/browser_context_keyed_service/refcounted_browser_context_ke yed_service.h" 5 #include "components/browser_context_keyed_service/refcounted_browser_context_ke yed_service.h"
6 6
7 namespace impl { 7 namespace impl {
8 8
9 // static 9 // static
10 void RefcountedProfileKeyedServiceTraits::Destruct( 10 void RefcountedBrowserContextKeyedServiceTraits::Destruct(
11 const RefcountedProfileKeyedService* obj) { 11 const RefcountedBrowserContextKeyedService* obj) {
12 if (obj->requires_destruction_on_thread_ && 12 if (obj->requires_destruction_on_thread_ &&
13 !content::BrowserThread::CurrentlyOn(obj->thread_id_)) { 13 !content::BrowserThread::CurrentlyOn(obj->thread_id_)) {
14 content::BrowserThread::DeleteSoon(obj->thread_id_, FROM_HERE, obj); 14 content::BrowserThread::DeleteSoon(obj->thread_id_, FROM_HERE, obj);
15 } else { 15 } else {
16 delete obj; 16 delete obj;
17 } 17 }
18 } 18 }
19 19
20 } // namespace impl 20 } // namespace impl
21 21
22 RefcountedProfileKeyedService::RefcountedProfileKeyedService() 22 RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService()
23 : requires_destruction_on_thread_(false), 23 : requires_destruction_on_thread_(false),
24 thread_id_(content::BrowserThread::UI) { 24 thread_id_(content::BrowserThread::UI) {
25 } 25 }
26 26
27 RefcountedProfileKeyedService::RefcountedProfileKeyedService( 27 RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService(
28 const content::BrowserThread::ID thread_id) 28 const content::BrowserThread::ID thread_id)
29 : requires_destruction_on_thread_(true), 29 : requires_destruction_on_thread_(true),
30 thread_id_(thread_id) { 30 thread_id_(thread_id) {
31 } 31 }
32 32
33 RefcountedProfileKeyedService::~RefcountedProfileKeyedService() {} 33 RefcountedBrowserContextKeyedService::~RefcountedBrowserContextKeyedService() {}
34 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698