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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc
diff --git a/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc b/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc
index da92a6dc579ab29a2375b8923a57751b1f46012f..ee06dd05dd5dda09fb98b35c9ce28831a61773c6 100644
--- a/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc
+++ b/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.cc
@@ -7,8 +7,8 @@
namespace impl {
// static
-void RefcountedProfileKeyedServiceTraits::Destruct(
- const RefcountedProfileKeyedService* obj) {
+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);
@@ -19,16 +19,16 @@ void RefcountedProfileKeyedServiceTraits::Destruct(
} // namespace impl
-RefcountedProfileKeyedService::RefcountedProfileKeyedService()
+RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService()
: requires_destruction_on_thread_(false),
thread_id_(content::BrowserThread::UI) {
}
-RefcountedProfileKeyedService::RefcountedProfileKeyedService(
+RefcountedBrowserContextKeyedService::RefcountedBrowserContextKeyedService(
const content::BrowserThread::ID thread_id)
: requires_destruction_on_thread_(true),
thread_id_(thread_id) {
}
-RefcountedProfileKeyedService::~RefcountedProfileKeyedService() {}
+RefcountedBrowserContextKeyedService::~RefcountedBrowserContextKeyedService() {}

Powered by Google App Engine
This is Rietveld 408576698