#include "base/basictypes.h"
#include "base/memory/singleton.h"
-#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
static AppListSyncableServiceFactory* GetInstance();
+ static KeyedService* BuildInstanceFor(
+ content::BrowserContext* browser_context);
+
private:
friend struct DefaultSingletonTraits<AppListSyncableServiceFactory>;
AppListSyncableServiceFactory();
- virtual ~AppListSyncableServiceFactory();
+ ~AppListSyncableServiceFactory() override;
// BrowserContextKeyedServiceFactory:
- virtual BrowserContextKeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
- virtual void RegisterProfilePrefs(
- user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
- virtual content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const OVERRIDE;
- virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* profile) const override;
+ void RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) override;
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
+ bool ServiceIsCreatedWithBrowserContext() const override;
+ bool ServiceIsNULLWhileTesting() const override;
DISALLOW_COPY_AND_ASSIGN(AppListSyncableServiceFactory);
};