diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 00:37:52 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 00:37:52 +0000 |
commit | bb05cae18dede8470d74aaa36c0b3ca1736a3159 (patch) | |
tree | bb5c3cbd24733b5c310fbb5fe73de7a55c8ab9e5 /chrome/browser/sessions | |
parent | 5c187863e3b264fb954d37fe24e41cf5b4c29c5b (diff) | |
download | chromium_src-bb05cae18dede8470d74aaa36c0b3ca1736a3159.zip chromium_src-bb05cae18dede8470d74aaa36c0b3ca1736a3159.tar.gz chromium_src-bb05cae18dede8470d74aaa36c0b3ca1736a3159.tar.bz2 |
Cleanup: Constify some ProfileKeyedBaseFactory methods and all overrides. Remove ProfileKeyedBaseFactory::ForceRegisterPrefsForTest()
Review URL: https://chromiumcodereview.appspot.com/10908088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
4 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/sessions/session_service_factory.cc b/chrome/browser/sessions/session_service_factory.cc index 0cde1a1..7c27170 100644 --- a/chrome/browser/sessions/session_service_factory.cc +++ b/chrome/browser/sessions/session_service_factory.cc @@ -65,10 +65,10 @@ ProfileKeyedService* SessionServiceFactory::BuildServiceInstanceFor( return service; } -bool SessionServiceFactory::ServiceIsCreatedWithProfile() { +bool SessionServiceFactory::ServiceIsCreatedWithProfile() const { return true; } -bool SessionServiceFactory::ServiceIsNULLWhileTesting() { +bool SessionServiceFactory::ServiceIsNULLWhileTesting() const { return true; } diff --git a/chrome/browser/sessions/session_service_factory.h b/chrome/browser/sessions/session_service_factory.h index 15d3860..3a4fde8 100644 --- a/chrome/browser/sessions/session_service_factory.h +++ b/chrome/browser/sessions/session_service_factory.h @@ -57,8 +57,8 @@ class SessionServiceFactory : public ProfileKeyedServiceFactory { // ProfileKeyedServiceFactory: virtual ProfileKeyedService* BuildServiceInstanceFor( Profile* profile) const OVERRIDE; - virtual bool ServiceIsCreatedWithProfile() OVERRIDE; - virtual bool ServiceIsNULLWhileTesting() OVERRIDE; + virtual bool ServiceIsCreatedWithProfile() const OVERRIDE; + virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; }; #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ diff --git a/chrome/browser/sessions/tab_restore_service_factory.cc b/chrome/browser/sessions/tab_restore_service_factory.cc index e0fea58..d227075 100644 --- a/chrome/browser/sessions/tab_restore_service_factory.cc +++ b/chrome/browser/sessions/tab_restore_service_factory.cc @@ -39,6 +39,6 @@ ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( return service; } -bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() { +bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const { return true; } diff --git a/chrome/browser/sessions/tab_restore_service_factory.h b/chrome/browser/sessions/tab_restore_service_factory.h index dec246c..0471fa5 100644 --- a/chrome/browser/sessions/tab_restore_service_factory.h +++ b/chrome/browser/sessions/tab_restore_service_factory.h @@ -31,7 +31,7 @@ class TabRestoreServiceFactory : public ProfileKeyedServiceFactory { // ProfileKeyedServiceFactory: virtual ProfileKeyedService* BuildServiceInstanceFor( Profile* profile) const OVERRIDE; - virtual bool ServiceIsNULLWhileTesting() OVERRIDE; + virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; }; #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_FACTORY_H_ |