Commit 97451249 authored by Henrique Nakashima's avatar Henrique Nakashima Committed by Commit Bot

Update comments about BrowserContextKeyed_Base_Factory to _Service_.

These comments that say "BrowserContextKeyed_Base_Factory" are outdated
and should refer to "BrowserContextKeyed_Service_Factory" instead.

Bug: 937770
Change-Id: Ie810020033d7337481649b5b3c87bcc1d365eea3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574420Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#654875}
parent 85722a75
...@@ -24,7 +24,7 @@ class BackgroundSyncControllerFactory ...@@ -24,7 +24,7 @@ class BackgroundSyncControllerFactory
BackgroundSyncControllerFactory(); BackgroundSyncControllerFactory();
~BackgroundSyncControllerFactory() override; ~BackgroundSyncControllerFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -24,7 +24,7 @@ class EventRouterFactory : public BrowserContextKeyedServiceFactory { ...@@ -24,7 +24,7 @@ class EventRouterFactory : public BrowserContextKeyedServiceFactory {
static EventRouterFactory* GetInstance(); static EventRouterFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -30,7 +30,7 @@ class UsersPrivateDelegateFactory : public BrowserContextKeyedServiceFactory { ...@@ -30,7 +30,7 @@ class UsersPrivateDelegateFactory : public BrowserContextKeyedServiceFactory {
UsersPrivateDelegateFactory(); UsersPrivateDelegateFactory();
~UsersPrivateDelegateFactory() override; ~UsersPrivateDelegateFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
......
...@@ -30,13 +30,11 @@ class VolumeManagerFactory : public BrowserContextKeyedServiceFactory { ...@@ -30,13 +30,11 @@ class VolumeManagerFactory : public BrowserContextKeyedServiceFactory {
static VolumeManagerFactory* GetInstance(); static VolumeManagerFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
bool ServiceIsNULLWhileTesting() const override; bool ServiceIsNULLWhileTesting() const override;
// BrowserContextKeyedServiceFactory overrides:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
......
...@@ -55,10 +55,8 @@ class OwnerSettingsServiceChromeOSFactory ...@@ -55,10 +55,8 @@ class OwnerSettingsServiceChromeOSFactory
static KeyedService* BuildInstanceFor(content::BrowserContext* context); static KeyedService* BuildInstanceFor(content::BrowserContext* context);
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
// BrowserContextKeyedServiceFactory implementation:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* browser_context) const override; content::BrowserContext* browser_context) const override;
......
...@@ -35,7 +35,7 @@ class CookieSettingsFactory ...@@ -35,7 +35,7 @@ class CookieSettingsFactory
CookieSettingsFactory(); CookieSettingsFactory();
~CookieSettingsFactory() override; ~CookieSettingsFactory() override;
// |BrowserContextKeyedBaseFactory| methods: // |RefcountedBrowserContextKeyedServiceFactory| methods:
void RegisterProfilePrefs( void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) override; user_prefs::PrefRegistrySyncable* registry) override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -28,7 +28,7 @@ class AutofillPrivateEventRouterFactory ...@@ -28,7 +28,7 @@ class AutofillPrivateEventRouterFactory
static AutofillPrivateEventRouterFactory* GetInstance(); static AutofillPrivateEventRouterFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -29,7 +29,7 @@ class LanguageSettingsPrivateDelegateFactory ...@@ -29,7 +29,7 @@ class LanguageSettingsPrivateDelegateFactory
static LanguageSettingsPrivateDelegateFactory* GetInstance(); static LanguageSettingsPrivateDelegateFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -32,7 +32,7 @@ class PasswordsPrivateDelegateFactory ...@@ -32,7 +32,7 @@ class PasswordsPrivateDelegateFactory
PasswordsPrivateDelegateFactory(); PasswordsPrivateDelegateFactory();
~PasswordsPrivateDelegateFactory() override; ~PasswordsPrivateDelegateFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -28,7 +28,7 @@ class PasswordsPrivateEventRouterFactory ...@@ -28,7 +28,7 @@ class PasswordsPrivateEventRouterFactory
static PasswordsPrivateEventRouterFactory* GetInstance(); static PasswordsPrivateEventRouterFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -28,7 +28,7 @@ class SafeBrowsingPrivateEventRouterFactory ...@@ -28,7 +28,7 @@ class SafeBrowsingPrivateEventRouterFactory
static SafeBrowsingPrivateEventRouterFactory* GetInstance(); static SafeBrowsingPrivateEventRouterFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -28,7 +28,7 @@ class GeneratedPrefsFactory : public BrowserContextKeyedServiceFactory { ...@@ -28,7 +28,7 @@ class GeneratedPrefsFactory : public BrowserContextKeyedServiceFactory {
GeneratedPrefsFactory(); GeneratedPrefsFactory();
~GeneratedPrefsFactory() override; ~GeneratedPrefsFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
......
...@@ -31,7 +31,7 @@ class SettingsPrivateDelegateFactory ...@@ -31,7 +31,7 @@ class SettingsPrivateDelegateFactory
SettingsPrivateDelegateFactory(); SettingsPrivateDelegateFactory();
~SettingsPrivateDelegateFactory() override; ~SettingsPrivateDelegateFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -28,7 +28,7 @@ class SettingsPrivateEventRouterFactory ...@@ -28,7 +28,7 @@ class SettingsPrivateEventRouterFactory
static SettingsPrivateEventRouterFactory* GetInstance(); static SettingsPrivateEventRouterFactory* GetInstance();
protected: protected:
// BrowserContextKeyedBaseFactory overrides: // BrowserContextKeyedServiceFactory overrides:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -26,7 +26,7 @@ class SystemIndicatorManagerFactory : public BrowserContextKeyedServiceFactory { ...@@ -26,7 +26,7 @@ class SystemIndicatorManagerFactory : public BrowserContextKeyedServiceFactory {
SystemIndicatorManagerFactory(); SystemIndicatorManagerFactory();
~SystemIndicatorManagerFactory() override; ~SystemIndicatorManagerFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
}; };
......
...@@ -23,7 +23,7 @@ class MediaEngagementServiceFactory : public BrowserContextKeyedServiceFactory { ...@@ -23,7 +23,7 @@ class MediaEngagementServiceFactory : public BrowserContextKeyedServiceFactory {
MediaEngagementServiceFactory(); MediaEngagementServiceFactory();
~MediaEngagementServiceFactory() override; ~MediaEngagementServiceFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -24,7 +24,7 @@ class NotificationMetricsLoggerFactory ...@@ -24,7 +24,7 @@ class NotificationMetricsLoggerFactory
NotificationMetricsLoggerFactory(); NotificationMetricsLoggerFactory();
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -23,7 +23,7 @@ class NotificationDisplayServiceFactory ...@@ -23,7 +23,7 @@ class NotificationDisplayServiceFactory
NotificationDisplayServiceFactory(); NotificationDisplayServiceFactory();
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -23,7 +23,7 @@ class NotifierStateTrackerFactory : public BrowserContextKeyedServiceFactory { ...@@ -23,7 +23,7 @@ class NotifierStateTrackerFactory : public BrowserContextKeyedServiceFactory {
NotifierStateTrackerFactory(); NotifierStateTrackerFactory();
~NotifierStateTrackerFactory() override; ~NotifierStateTrackerFactory() override;
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -24,7 +24,7 @@ class PlatformNotificationServiceFactory ...@@ -24,7 +24,7 @@ class PlatformNotificationServiceFactory
PlatformNotificationServiceFactory(); PlatformNotificationServiceFactory();
// BrowserContextKeyedBaseFactory implementation. // BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -68,8 +68,8 @@ TEST_F(PasswordManagerInternalsServiceTest, ServiceNotActiveIncognito) { ...@@ -68,8 +68,8 @@ TEST_F(PasswordManagerInternalsServiceTest, ServiceNotActiveIncognito) {
PasswordManagerInternalsService* service = PasswordManagerInternalsService* service =
PasswordManagerInternalsServiceFactory::GetForBrowserContext( PasswordManagerInternalsServiceFactory::GetForBrowserContext(
incognito_profile); incognito_profile);
// BrowserContextKeyedBaseFactory::GetBrowserContextToUse should return NULL // BrowserContextKeyedServiceFactory::GetBrowserContextToUse should return
// for |profile|, because |profile| is incognito. Therefore the returned // NULL for |profile|, because |profile| is incognito. Therefore the returned
// |service| should also be NULL. // |service| should also be NULL.
EXPECT_FALSE(service); EXPECT_FALSE(service);
} }
...@@ -27,7 +27,7 @@ class PermissionManagerFactory : public BrowserContextKeyedServiceFactory { ...@@ -27,7 +27,7 @@ class PermissionManagerFactory : public BrowserContextKeyedServiceFactory {
PermissionManagerFactory(); PermissionManagerFactory();
~PermissionManagerFactory() override; ~PermissionManagerFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -35,8 +35,6 @@ class FlashTemporaryPermissionTrackerFactory ...@@ -35,8 +35,6 @@ class FlashTemporaryPermissionTrackerFactory
// RefcountedBrowserContextKeyedServiceFactory methods: // RefcountedBrowserContextKeyedServiceFactory methods:
scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
// BrowserContextKeyedBaseFactory methods:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
......
...@@ -40,8 +40,6 @@ class TriggeredProfileResetterFactory ...@@ -40,8 +40,6 @@ class TriggeredProfileResetterFactory
// BrowserContextKeyedServiceFactory: // BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
// BrowserContextKeyedBaseFactory:
void RegisterProfilePrefs( void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) override; user_prefs::PrefRegistrySyncable* registry) override;
bool ServiceIsCreatedWithBrowserContext() const override; bool ServiceIsCreatedWithBrowserContext() const override;
......
...@@ -23,7 +23,7 @@ class SerialChooserContextFactory : public BrowserContextKeyedServiceFactory { ...@@ -23,7 +23,7 @@ class SerialChooserContextFactory : public BrowserContextKeyedServiceFactory {
SerialChooserContextFactory(); SerialChooserContextFactory();
~SerialChooserContextFactory() override; ~SerialChooserContextFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -29,7 +29,7 @@ class ChromeSSLHostStateDelegateFactory ...@@ -29,7 +29,7 @@ class ChromeSSLHostStateDelegateFactory
ChromeSSLHostStateDelegateFactory(); ChromeSSLHostStateDelegateFactory();
~ChromeSSLHostStateDelegateFactory() override; ~ChromeSSLHostStateDelegateFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
void RegisterProfilePrefs( void RegisterProfilePrefs(
......
...@@ -23,7 +23,7 @@ class UsbChooserContextFactory : public BrowserContextKeyedServiceFactory { ...@@ -23,7 +23,7 @@ class UsbChooserContextFactory : public BrowserContextKeyedServiceFactory {
UsbChooserContextFactory(); UsbChooserContextFactory();
~UsbChooserContextFactory() override; ~UsbChooserContextFactory() override;
// BrowserContextKeyedBaseFactory methods: // BrowserContextKeyedServiceFactory methods:
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override; content::BrowserContext* profile) const override;
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
......
...@@ -72,7 +72,7 @@ class WebDataServiceFactory : public BrowserContextKeyedServiceFactory { ...@@ -72,7 +72,7 @@ class WebDataServiceFactory : public BrowserContextKeyedServiceFactory {
WebDataServiceFactory(); WebDataServiceFactory();
~WebDataServiceFactory() override; ~WebDataServiceFactory() override;
// |BrowserContextKeyedBaseFactory| methods: // |BrowserContextKeyedServiceFactory| methods:
content::BrowserContext* GetBrowserContextToUse( content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override; content::BrowserContext* context) const override;
KeyedService* BuildServiceInstanceFor( KeyedService* BuildServiceInstanceFor(
......
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#include "components/keyed_service/core/dependency_manager.h" #include "components/keyed_service/core/dependency_manager.h"
#include "components/keyed_service/core/keyed_service_export.h" #include "components/keyed_service/core/keyed_service_export.h"
class BrowserContextKeyedBaseFactory;
namespace base { namespace base {
template <typename T> template <typename T>
class NoDestructor; class NoDestructor;
...@@ -29,7 +27,7 @@ class PrefRegistrySyncable; ...@@ -29,7 +27,7 @@ class PrefRegistrySyncable;
} }
// A singleton that listens for context destruction notifications and // A singleton that listens for context destruction notifications and
// rebroadcasts them to each BrowserContextKeyedBaseFactory in a safe order // rebroadcasts them to each BrowserContextKeyedServiceFactory in a safe order
// based on the stated dependencies by each service. // based on the stated dependencies by each service.
class KEYED_SERVICE_EXPORT BrowserContextDependencyManager class KEYED_SERVICE_EXPORT BrowserContextDependencyManager
: public DependencyManager { : public DependencyManager {
...@@ -44,14 +42,14 @@ class KEYED_SERVICE_EXPORT BrowserContextDependencyManager ...@@ -44,14 +42,14 @@ class KEYED_SERVICE_EXPORT BrowserContextDependencyManager
// Called by each BrowserContext to alert us of its creation. Several // Called by each BrowserContext to alert us of its creation. Several
// services want to be started when a context is created. If you want your // services want to be started when a context is created. If you want your
// KeyedService to be started with the BrowserContext, override // KeyedService to be started with the BrowserContext, override
// BrowserContextKeyedBaseFactory::ServiceIsCreatedWithBrowserContext() to // BrowserContextKeyedServiceFactory::ServiceIsCreatedWithBrowserContext() to
// return true. This method also registers any service-related preferences // return true. This method also registers any service-related preferences
// for non-incognito profiles. // for non-incognito profiles.
void CreateBrowserContextServices(content::BrowserContext* context); void CreateBrowserContextServices(content::BrowserContext* context);
// Similar to CreateBrowserContextServices(), except this is used for creating // Similar to CreateBrowserContextServices(), except this is used for creating
// test BrowserContexts - these contexts will not create services for any // test BrowserContexts - these contexts will not create services for any
// BrowserContextKeyedBaseFactories that return true from // BrowserContextKeyedServiceFactory that returns true from
// ServiceIsNULLWhileTesting(). // ServiceIsNULLWhileTesting().
void CreateBrowserContextServicesForTest(content::BrowserContext* context); void CreateBrowserContextServicesForTest(content::BrowserContext* context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment