projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
chrome
/
browser
/
search
/
hotword_service_factory.h
diff --git
a/src/chrome/browser/search/hotword_service_factory.h
b/src/chrome/browser/search/hotword_service_factory.h
index
9ec2023
..
0eb6a74
100644
(file)
--- a/
src/chrome/browser/search/hotword_service_factory.h
+++ b/
src/chrome/browser/search/hotword_service_factory.h
@@
-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 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>;
private:
friend struct DefaultSingletonTraits<HotwordServiceFactory>;
@@
-32,8
+38,6
@@
class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
// Overrides from BrowserContextKeyedServiceFactory:
virtual void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
// 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;
virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;