Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search / hotword_service_factory.h
index 9ec2023..0eb6a74 100644 (file)
@@ -23,6 +23,12 @@ class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
   // Returns true to show the opt in pop up for that profile.
   static bool ShouldShowOptInPopup(Profile* profile);
 
+  // Returns true if the hotwording service is available for |profile|.
+  static bool IsServiceAvailable(Profile* profile);
+
+  // Returns true if hotwording is allowed for |profile|.
+  static bool IsHotwordAllowed(Profile* profile);
+
  private:
   friend struct DefaultSingletonTraits<HotwordServiceFactory>;
 
@@ -32,8 +38,6 @@ class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
   // Overrides from BrowserContextKeyedServiceFactory:
   virtual void RegisterProfilePrefs(
       user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
-  virtual content::BrowserContext* GetBrowserContextToUse(
-      content::BrowserContext* context) const OVERRIDE;
   virtual BrowserContextKeyedService* BuildServiceInstanceFor(
       content::BrowserContext* profile) const OVERRIDE;