Index: Source/modules/speech/SpeechRecognitionController.cpp |
diff --git a/Source/modules/speech/SpeechRecognitionController.cpp b/Source/modules/speech/SpeechRecognitionController.cpp |
index 47e12e05a50a8b1215e27b9137de5a2f123ac526..8abf2048b7d4c45806a09f5ebe1212319ecc75aa 100644 |
--- a/Source/modules/speech/SpeechRecognitionController.cpp |
+++ b/Source/modules/speech/SpeechRecognitionController.cpp |
@@ -33,7 +33,7 @@ const char* SpeechRecognitionController::supplementName() |
return "SpeechRecognitionController"; |
} |
-SpeechRecognitionController::SpeechRecognitionController(SpeechRecognitionClient* client) |
+SpeechRecognitionController::SpeechRecognitionController(PassOwnPtr<SpeechRecognitionClient> client) |
: m_client(client) |
{ |
} |
@@ -43,12 +43,12 @@ SpeechRecognitionController::~SpeechRecognitionController() |
// FIXME: Call m_client->pageDestroyed(); once we have implemented a client. |
} |
-PassOwnPtr<SpeechRecognitionController> SpeechRecognitionController::create(SpeechRecognitionClient* client) |
+PassOwnPtr<SpeechRecognitionController> SpeechRecognitionController::create(PassOwnPtr<SpeechRecognitionClient> client) |
{ |
return adoptPtr(new SpeechRecognitionController(client)); |
} |
-void provideSpeechRecognitionTo(Page& page, SpeechRecognitionClient* client) |
+void provideSpeechRecognitionTo(Page& page, PassOwnPtr<SpeechRecognitionClient> client) |
{ |
SpeechRecognitionController::provideTo(page, SpeechRecognitionController::supplementName(), SpeechRecognitionController::create(client)); |
} |