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

Unified Diff: chrome/browser/speech/tts_extension_loader_chromeos.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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/speech/tts_extension_loader_chromeos.cc
diff --git a/chrome/browser/speech/tts_extension_loader_chromeos.cc b/chrome/browser/speech/tts_extension_loader_chromeos.cc
index c454ec68a11aa61f4a594f3c295de61036a4a885..39c53cd57ab7b9a076fba2cb03e2d1c44135feb5 100644
--- a/chrome/browser/speech/tts_extension_loader_chromeos.cc
+++ b/chrome/browser/speech/tts_extension_loader_chromeos.cc
@@ -21,11 +21,12 @@
#include "grit/browser_resources.h"
// Factory to load one instance of TtsExtensionLoaderChromeOs per profile.
-class TtsExtensionLoaderChromeOsFactory : public ProfileKeyedServiceFactory {
+class TtsExtensionLoaderChromeOsFactory
+ : public BrowserContextKeyedServiceFactory {
public:
static TtsExtensionLoaderChromeOs* GetForProfile(Profile* profile) {
return static_cast<TtsExtensionLoaderChromeOs*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
static TtsExtensionLoaderChromeOsFactory* GetInstance() {
@@ -35,9 +36,9 @@ class TtsExtensionLoaderChromeOsFactory : public ProfileKeyedServiceFactory {
private:
friend struct DefaultSingletonTraits<TtsExtensionLoaderChromeOsFactory>;
- TtsExtensionLoaderChromeOsFactory() : ProfileKeyedServiceFactory(
+ TtsExtensionLoaderChromeOsFactory() : BrowserContextKeyedServiceFactory(
"TtsExtensionLoaderChromeOs",
- ProfileDependencyManager::GetInstance())
+ BrowserContextDependencyManager::GetInstance())
{}
virtual ~TtsExtensionLoaderChromeOsFactory() {}
@@ -49,7 +50,7 @@ class TtsExtensionLoaderChromeOsFactory : public ProfileKeyedServiceFactory {
return chrome::GetBrowserContextRedirectedInIncognito(context);
}
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE {
return new TtsExtensionLoaderChromeOs(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698