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

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

Issue 448033002: Eliminate the dependency of Profile from TtsMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace Profile by BrowserContext Created 6 years, 4 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_chromeos.cc
diff --git a/chrome/browser/speech/tts_chromeos.cc b/chrome/browser/speech/tts_chromeos.cc
index 1e7419512c0de85e8bdc9d06fb4145efd2ceecff..7053fe9785e7bfcdcb7f78961d3aa99fb07ad0c3 100644
--- a/chrome/browser/speech/tts_chromeos.cc
+++ b/chrome/browser/speech/tts_chromeos.cc
@@ -9,8 +9,6 @@
// an implementation of LoadBuiltInTtsExtension and dummy implementations of
// everything else.
-class Profile;
-
class TtsPlatformImplChromeOs : public TtsPlatformImpl {
public:
// TtsPlatformImpl overrides:
@@ -18,11 +16,12 @@ class TtsPlatformImplChromeOs : public TtsPlatformImpl {
return false;
}
- virtual bool LoadBuiltInTtsExtension(Profile* profile) OVERRIDE {
+ virtual bool LoadBuiltInTtsExtension(
+ BrowserContext* browser_context) OVERRIDE {
TtsEngineDelegate* tts_engine_delegate =
TtsController::GetInstance()->GetTtsEngineDelegate();
if (tts_engine_delegate)
- return tts_engine_delegate->LoadBuiltInTtsExtension(profile);
+ return tts_engine_delegate->LoadBuiltInTtsExtension(browser_context);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698