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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/extension_api/tts_extension_api.h
diff --git a/chrome/browser/speech/extension_api/tts_extension_api.h b/chrome/browser/speech/extension_api/tts_extension_api.h
index a8f3c192625ba655871d191d48e18f509c112789..4746e0952df9e5ea0ff1329d84ed86a4e5c6ce2e 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api.h
+++ b/chrome/browser/speech/extension_api/tts_extension_api.h
@@ -11,7 +11,9 @@
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/speech/tts_controller.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
const char *TtsEventTypeToString(TtsEventType event_type);
TtsEventType TtsEventTypeFromString(const std::string& str);
@@ -62,12 +64,9 @@ class TtsGetVoicesFunction : public ChromeSyncExtensionFunction {
class TtsAPI : public ProfileKeyedAPI {
public:
- explicit TtsAPI(Profile* profile);
+ explicit TtsAPI(content::BrowserContext* context);
virtual ~TtsAPI();
- // Convenience method to get the TtsAPI for a profile.
- static TtsAPI* Get(Profile* profile);
-
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<TtsAPI>* GetFactoryInstance();
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | chrome/browser/speech/extension_api/tts_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698