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

Unified Diff: chrome/browser/profiles/profile_keyed_base_factory.h

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: 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.

Powered by Google App Engine
This is Rietveld 408576698