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

Unified Diff: Source/web/WebSpeechGrammar.cpp

Issue 315133004: Enable Oilpan by default in modules/speech/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unused Dictionary support for SpeechRecognitionError + fix Speech*Event create() types. Created 6 years, 6 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/web/WebSpeechGrammar.cpp
diff --git a/Source/web/WebSpeechGrammar.cpp b/Source/web/WebSpeechGrammar.cpp
index 3d95263f959ccfa1a24d607268e5be2323a71974..3397d4fd64b44000c68145928ba95b0dd33a83d0 100644
--- a/Source/web/WebSpeechGrammar.cpp
+++ b/Source/web/WebSpeechGrammar.cpp
@@ -41,14 +41,14 @@ void WebSpeechGrammar::assign(const WebSpeechGrammar& other)
m_private = other.m_private;
}
-WebSpeechGrammar::WebSpeechGrammar(const PassRefPtrWillBeRawPtr<WebCore::SpeechGrammar>& value)
- : m_private(value)
+WebSpeechGrammar::WebSpeechGrammar(const WebCore::SpeechGrammar* value)
tkent 2014/06/09 01:28:46 This is not a mechanical change. The argument typ
sof 2014/06/09 12:24:32 This is a good issue to bring up as we remove tran
tkent 2014/06/10 03:19:14 I understand your point. But it's not the topic o
+ : m_private(const_cast<WebCore::SpeechGrammar*>(value))
{
}
-WebSpeechGrammar& WebSpeechGrammar::operator=(const PassRefPtrWillBeRawPtr<WebCore::SpeechGrammar>& value)
+WebSpeechGrammar& WebSpeechGrammar::operator=(const WebCore::SpeechGrammar* value)
{
- m_private = value;
+ m_private = const_cast<WebCore::SpeechGrammar*>(value);
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698