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

Unified Diff: chrome/browser/search/hotword_service_factory.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/browser/search/hotword_service_factory.h
diff --git a/chrome/browser/search/hotword_service_factory.h b/chrome/browser/search/hotword_service_factory.h
index 0eb6a741772f277ad423543c8fca45fb53830568..5310a0e74ad308dd71e19399689dcf353f3a4fbc 100644
--- a/chrome/browser/search/hotword_service_factory.h
+++ b/chrome/browser/search/hotword_service_factory.h
@@ -15,19 +15,19 @@ class Profile;
// Singleton that owns all HotwordServices and associates them with Profiles.
class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
public:
- // Returns the HotwordService for |profile|.
- static HotwordService* GetForProfile(Profile* profile);
+ // Returns the HotwordService for |context|.
+ static HotwordService* GetForProfile(content::BrowserContext* context);
static HotwordServiceFactory* GetInstance();
- // 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 |context|.
+ static bool ShouldShowOptInPopup(content::BrowserContext* context);
- // Returns true if the hotwording service is available for |profile|.
- static bool IsServiceAvailable(Profile* profile);
+ // Returns true if the hotwording service is available for |context|.
+ static bool IsServiceAvailable(content::BrowserContext* context);
- // Returns true if hotwording is allowed for |profile|.
- static bool IsHotwordAllowed(Profile* profile);
+ // Returns true if hotwording is allowed for |context|.
+ static bool IsHotwordAllowed(content::BrowserContext* context);
private:
friend struct DefaultSingletonTraits<HotwordServiceFactory>;
@@ -39,7 +39,7 @@ class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
virtual void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual BrowserContextKeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
+ content::BrowserContext* context) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(HotwordServiceFactory);
};
« no previous file with comments | « chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc ('k') | chrome/browser/search/hotword_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698