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

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

Issue 349073004: Cleanup: Remove deprecated Profile::GetExtensionService(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 f47b709c95a8e79707035fd54666fd57501f8ab9..8b87afc4846ae97c527624158b9197b5f5a0a663 100644
--- a/chrome/browser/speech/tts_extension_loader_chromeos.cc
+++ b/chrome/browser/speech/tts_extension_loader_chromeos.cc
@@ -46,7 +46,7 @@ class TtsExtensionLoaderChromeOsFactory
virtual ~TtsExtensionLoaderChromeOsFactory() {}
virtual content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const OVERRIDE{
+ content::BrowserContext* context) const OVERRIDE {
// If given an incognito profile (including the Chrome OS login
// profile), share the service with the original profile.
return chrome::GetBrowserContextRedirectedInIncognito(context);
@@ -85,7 +85,8 @@ bool TtsExtensionLoaderChromeOs::LoadTtsExtension() {
// Load the component extension into this profile.
VLOG(1) << "Loading TTS component extension.";
tts_state_ = TTS_LOADING;
- ExtensionService* extension_service = profile_->GetExtensionService();
+ ExtensionService* extension_service =
+ extensions::ExtensionSystem::Get(profile_)->extension_service();
DCHECK(extension_service);
extension_service->component_loader()->AddChromeOsSpeechSynthesisExtension();
return true;

Powered by Google App Engine
This is Rietveld 408576698