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

Unified Diff: Source/modules/speech/SpeechGrammar.cpp

Issue 168963003: Make WebPrivatePtr capable of wrapping garbage collected objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Temporarily drop back to using .reset() instead of nullptr. 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/SpeechGrammar.cpp
diff --git a/Source/modules/speech/SpeechGrammar.cpp b/Source/modules/speech/SpeechGrammar.cpp
index 2f86ee420139a125e98329c50fc151dd99c4ba37..eaf63b64625ebf10a79a2f798207a25b9e50bdc2 100644
--- a/Source/modules/speech/SpeechGrammar.cpp
+++ b/Source/modules/speech/SpeechGrammar.cpp
@@ -35,12 +35,12 @@ DEFINE_GC_INFO(SpeechGrammar);
PassRefPtrWillBeRawPtr<SpeechGrammar> SpeechGrammar::create()
{
- return adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechGrammar);
+ return adoptRefWillBeNoop(new SpeechGrammar);
}
PassRefPtrWillBeRawPtr<SpeechGrammar> SpeechGrammar::create(const KURL& src, double weight)
{
- return adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechGrammar(src, weight));
+ return adoptRefWillBeNoop(new SpeechGrammar(src, weight));
}
void SpeechGrammar::setSrc(ExecutionContext* executionContext, const String& src)

Powered by Google App Engine
This is Rietveld 408576698