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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp

Issue 2610903002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp b/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
index bcd4ee3b5fd31c4614764ae1bb7b29d7a0888b45..efc49cae4eaee79b46a4139e69277ffffee2999a 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
@@ -25,6 +25,7 @@
#include "modules/speech/SpeechGrammarList.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/Document.h"
namespace blink {
@@ -40,10 +41,10 @@ SpeechGrammar* SpeechGrammarList::item(unsigned index) const {
return m_grammars[index];
}
-void SpeechGrammarList::addFromUri(ExecutionContext* executionContext,
+void SpeechGrammarList::addFromUri(ScriptState* scriptState,
const String& src,
double weight) {
- Document* document = toDocument(executionContext);
+ Document* document = toDocument(scriptState->getExecutionContext());
m_grammars.append(SpeechGrammar::create(document->completeURL(src), weight));
}

Powered by Google App Engine
This is Rietveld 408576698