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

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: Fixed compilation error on ChromeOS 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
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.cc ('k') | chrome/browser/speech/tts_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..67e4f90a8a1fc35c54d1826ce9c59aa0f035fa7d 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(
+ content::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;
}
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.cc ('k') | chrome/browser/speech/tts_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698