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

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

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more 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/SpeechGrammar.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp b/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
index 569781989f1ffab73ff2ae37aef3a04d98f719ca..9655363482f0b1234d9733d6bd0e387193ce2dff 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
@@ -37,9 +37,8 @@ SpeechGrammar* SpeechGrammar::create(const KURL& src, double weight) {
return new SpeechGrammar(src, weight);
}
-void SpeechGrammar::setSrc(ExecutionContext* executionContext,
- const String& src) {
- Document* document = toDocument(executionContext);
+void SpeechGrammar::setSrc(ScriptState* scriptState, const String& src) {
+ Document* document = toDocument(scriptState->getExecutionContext());
m_src = document->completeURL(src);
}
« no previous file with comments | « third_party/WebKit/Source/modules/speech/SpeechGrammar.h ('k') | third_party/WebKit/Source/modules/speech/SpeechGrammar.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698