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

Unified Diff: chrome/test/testing_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/test/testing_profile.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 6042ef3ac6e84759d1ae7f8b91700556857de19f..b7699523abe3bcafe89a0cefd45637b5f09519fc 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -44,7 +44,6 @@ class HostContentSettingsMap;
class PrefService;
class ProfileDependencyManager;
class ProfileSyncService;
-class SessionService;
class TemplateURLModel;
class TestingPrefService;
class ThemeService;
@@ -221,10 +220,6 @@ class TestingProfile : public Profile {
virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
virtual HostZoomMap* GetHostZoomMap();
- void set_session_service(SessionService* session_service);
- virtual SessionService* GetSessionService();
- virtual void ShutdownSessionService() {}
- virtual bool HasSessionService() const;
virtual bool HasProfileSyncService() const;
virtual std::wstring GetName();
virtual void SetName(const std::wstring& name) {}
@@ -241,9 +236,7 @@ class TestingProfile : public Profile {
virtual BookmarkModel* GetBookmarkModel();
virtual bool IsSameProfile(Profile *p);
virtual base::Time GetStartTime() const;
- virtual TabRestoreService* GetTabRestoreService();
virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry();
- virtual void ResetTabRestoreService() {}
virtual SpellCheckHost* GetSpellCheckHost();
virtual void ReinitializeSpellCheckHost(bool force) { }
virtual WebKitContext* GetWebKitContext();
@@ -346,9 +339,6 @@ class TestingProfile : public Profile {
scoped_ptr<NTPResourceCache> ntp_resource_cache_;
- // The SessionService. Defaults to NULL, but can be set using the setter.
- scoped_ptr<SessionService> session_service_;
-
// Internally, this is a TestURLRequestContextGetter that creates a dummy
// request context. Currently, only the CookieMonster is hooked up.
scoped_refptr<net::URLRequestContextGetter> request_context_;

Powered by Google App Engine
This is Rietveld 408576698