| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" | 5 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/stl_util.h" | |
| 10 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 9 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 11 #include "components/keyed_service/core/keyed_service.h" | |
| 12 #include "components/keyed_service/core/refcounted_keyed_service.h" | 10 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| 13 #include "components/pref_registry/pref_registry_syncable.h" | 11 #include "components/pref_registry/pref_registry_syncable.h" |
| 14 #include "components/user_prefs/user_prefs.h" | 12 #include "components/user_prefs/user_prefs.h" |
| 15 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
| 16 | 14 |
| 17 void RefcountedBrowserContextKeyedServiceFactory::SetTestingFactory( | 15 void RefcountedBrowserContextKeyedServiceFactory::SetTestingFactory( |
| 18 content::BrowserContext* context, | 16 content::BrowserContext* context, |
| 19 TestingFactoryFunction testing_factory) { | 17 TestingFactoryFunction testing_factory) { |
| 20 RefcountedKeyedServiceFactory::SetTestingFactory( | 18 RefcountedKeyedServiceFactory::SetTestingFactory( |
| 21 context, | 19 context, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 131 |
| 134 void RefcountedBrowserContextKeyedServiceFactory::ContextDestroyed( | 132 void RefcountedBrowserContextKeyedServiceFactory::ContextDestroyed( |
| 135 base::SupportsUserData* context) { | 133 base::SupportsUserData* context) { |
| 136 BrowserContextDestroyed(static_cast<content::BrowserContext*>(context)); | 134 BrowserContextDestroyed(static_cast<content::BrowserContext*>(context)); |
| 137 } | 135 } |
| 138 | 136 |
| 139 void RefcountedBrowserContextKeyedServiceFactory::RegisterPrefs( | 137 void RefcountedBrowserContextKeyedServiceFactory::RegisterPrefs( |
| 140 user_prefs::PrefRegistrySyncable* registry) { | 138 user_prefs::PrefRegistrySyncable* registry) { |
| 141 RegisterProfilePrefs(registry); | 139 RegisterProfilePrefs(registry); |
| 142 } | 140 } |
| OLD | NEW |