Index: chrome/browser/profiles/profile_keyed_base_factory.h |
diff --git a/chrome/browser/profiles/profile_keyed_base_factory.h b/chrome/browser/profiles/profile_keyed_base_factory.h |
index 92401d0a9797b929ac25a9f89d84d19a222a2bf6..91c511ce919fcecb4f02c21d50a08b42e28fc441 100644 |
--- a/chrome/browser/profiles/profile_keyed_base_factory.h |
+++ b/chrome/browser/profiles/profile_keyed_base_factory.h |
@@ -50,23 +50,17 @@ class ProfileKeyedBaseFactory : public base::NonThreadSafe, |
// created by factories. |
void DependsOn(ProfileKeyedBaseFactory* rhs); |
- // Finds which profile (if any) to use using the Service.*Incognito methods. |
- content::BrowserContext* GetProfileToUse(content::BrowserContext* profile); |
- |
// Interface for people building a concrete FooServiceFactory: -------------- |
+ // Finds which browser context (if any) to use. |
+ virtual content::BrowserContext* GetBrowserContextToUse( |
+ content::BrowserContext* context) const; |
+ |
// Register any user preferences on this service. This is called during |
// CreateProfileService() since preferences are registered on a per Profile |
// basis. |
virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) {} |
- // By default, if we are asked for a service with an Incognito profile, we |
- // pass back NULL. To redirect to the Incognito's original profile or to |
- // create another instance, even for Incognito windows, override one of the |
- // following methods: |
- virtual bool ServiceRedirectedInIncognito() const; |
- virtual bool ServiceHasOwnInstanceInIncognito() const; |
- |
// By default, we create instances of a service lazily and wait until |
// GetForProfile() is called on our subclass. Some services need to be |
// created as soon as the Profile has been brought up. |