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

Unified Diff: Source/modules/speech/testing/InternalsSpeechSynthesis.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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: Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
diff --git a/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp b/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
index 45385e4772908d4fc0d9383e760ceb67845657b8..eab9dccd4d57d9969f95d89cadf80701b439d23e 100644
--- a/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
+++ b/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
@@ -39,11 +39,11 @@
namespace WebCore {
-void InternalsSpeechSynthesis::enableMockSpeechSynthesizer(Internals* internals, Document* document)
+void InternalsSpeechSynthesis::enableMockSpeechSynthesizer(Internals&, Document* document)
{
- ASSERT(internals && document && document->domWindow());
+ ASSERT(document && document->domWindow());
- SpeechSynthesis* synthesis = DOMWindowSpeechSynthesis::speechSynthesis(document->domWindow());
+ SpeechSynthesis* synthesis = DOMWindowSpeechSynthesis::speechSynthesis(*document->domWindow());
if (!synthesis)
return;

Powered by Google App Engine
This is Rietveld 408576698