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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chrome_speech_recognition_preferences.cc
diff --git a/chrome/browser/speech/chrome_speech_recognition_preferences.cc b/chrome/browser/speech/chrome_speech_recognition_preferences.cc
index bc7cce7c81fae0563e9fc4b1e6b570fe9da8c227..d6633eddfff7de1c396027104a6367c0b1399a37 100644
--- a/chrome/browser/speech/chrome_speech_recognition_preferences.cc
+++ b/chrome/browser/speech/chrome_speech_recognition_preferences.cc
@@ -35,11 +35,11 @@ void ChromeSpeechRecognitionPreferences::InitializeFactory() {
scoped_refptr<ChromeSpeechRecognitionPreferences>
ChromeSpeechRecognitionPreferences::Factory::GetForProfile(Profile* profile) {
DCHECK(profile);
- // GetServiceForProfile will let us instantiate a new (if not already cached
+ // GetServiceForBrowserContext will let us instantiate a new (if not already cached
// for the profile) Service through BuildServiceInstanceFor method.
ChromeSpeechRecognitionPreferences::Service* service =
static_cast<ChromeSpeechRecognitionPreferences::Service*>(
- GetServiceForProfile(profile, true));
+ GetServiceForBrowserContext(profile, true));
if (!service) {
// Incognito won't have this service.
@@ -50,15 +50,15 @@ ChromeSpeechRecognitionPreferences::Factory::GetForProfile(Profile* profile) {
}
ChromeSpeechRecognitionPreferences::Factory::Factory()
- : ProfileKeyedServiceFactory(
+ : BrowserContextKeyedServiceFactory(
"ChromeSpeechRecognitionPreferences",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
}
ChromeSpeechRecognitionPreferences::Factory::~Factory() {
}
-ProfileKeyedService*
+BrowserContextKeyedService*
ChromeSpeechRecognitionPreferences::Factory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
DCHECK(profile);
@@ -84,7 +84,7 @@ ServiceIsNULLWhileTesting() const {
}
bool ChromeSpeechRecognitionPreferences::Factory::
-ServiceIsCreatedWithProfile() const {
+ServiceIsCreatedWithBrowserContext() const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698