Home | History | Annotate | Download | only in sessions

Lines Matching refs:profile

9 #include "chrome/browser/profiles/profile.h"
14 // Profiles. Listens for the Profile's destruction notification and cleans up
18 // Returns the session service for |profile|. This may return NULL. If this
19 // profile supports a session service (it isn't incognito), and the session
22 // |profile|.
24 // This returns NULL if the profile is incognito. Callers should always check
26 static SessionService* GetForProfile(Profile* profile);
28 // Returns the session service for |profile|, but do not create it if it
29 // doesn't exist. This returns NULL if the profile is incognito or if session
32 static SessionService* GetForProfileIfExisting(Profile* profile);
34 // Returns the session service for |profile|. This is the same as
36 // ShutdownForProfile has been called for |profile|.
37 static SessionService* GetForProfileForSessionRestore(Profile* profile);
39 // If |profile| has a session service, it is shut down. To properly record the
42 static void ShutdownForProfile(Profile* profile);
45 // For test use: force setting of the session service for a given profile.
46 // This will delete a previous session service for this profile if it exists.
47 static void SetForTestProfile(Profile* profile, SessionService* service) {
48 GetInstance()->BrowserContextShutdown(profile);
49 GetInstance()->BrowserContextDestroyed(profile);
50 GetInstance()->Associate(profile, service);
66 content::BrowserContext* profile) const OVERRIDE;