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

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

Issue 6901031: Profile shouldn't own Session/TabRestore services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac build Created 9 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.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 80e8bdfde247aa7d1c76464c6eebb2343d174c08..c08c4df26abf544e630d1ec89c57b24d984f5f79 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -83,10 +83,8 @@ class ProtocolHandlerRegistry;
class SQLitePersistentCookieStore;
class SSLConfigServiceManager;
class SSLHostState;
-class SessionService;
class SpellCheckHost;
class StatusTray;
-class TabRestoreService;
class TemplateURLFetcher;
class TemplateURLModel;
class TokenService;
@@ -393,24 +391,6 @@ class Profile {
// created the first time that this method is called.
virtual FindBarState* GetFindBarState() = 0;
- // Returns the session service for this profile. This may return NULL. If
- // this profile supports a session service (it isn't incognito), and
- // the session service hasn't yet been created, this forces creation of
- // the session service.
- //
- // This returns NULL in two situations: the profile is incognito, or the
- // session service has been explicitly shutdown (browser is exiting). Callers
- // should always check the return value for NULL.
- virtual SessionService* GetSessionService() = 0;
-
- // If this profile has a session service, it is shut down. To properly record
- // the current state this forces creation of the session service, then shuts
- // it down.
- virtual void ShutdownSessionService() = 0;
-
- // Returns true if this profile has a session service.
- virtual bool HasSessionService() const = 0;
-
// Returns true if this profile has a profile sync service.
virtual bool HasProfileSyncService() const = 0;
@@ -449,11 +429,6 @@ class Profile {
// the user started chrome.
virtual base::Time GetStartTime() const = 0;
- // Returns the TabRestoreService. This returns NULL when incognito.
- virtual TabRestoreService* GetTabRestoreService() = 0;
-
- virtual void ResetTabRestoreService() = 0;
-
// May return NULL.
virtual SpellCheckHost* GetSpellCheckHost() = 0;

Powered by Google App Engine
This is Rietveld 408576698