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

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

Issue 2816543002: Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Rebase Created 3 years, 8 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/DOMWindowSpeechSynthesis.cpp
diff --git a/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
index f0f337c432f10dd21c324c539310a73be11c11e3..ced3d516f0a0b1f6195bf8c2886eeb45a3fc2518 100644
--- a/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -31,6 +31,7 @@
#include "modules/speech/DOMWindowSpeechSynthesis.h"
#include "bindings/core/v8/ScriptState.h"
+#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "platform/wtf/PassRefPtr.h"
@@ -67,7 +68,7 @@ SpeechSynthesis* DOMWindowSpeechSynthesis::speechSynthesis(
ScriptState* script_state) {
if (!speech_synthesis_) {
speech_synthesis_ =
- SpeechSynthesis::Create(script_state->GetExecutionContext());
+ SpeechSynthesis::Create(ExecutionContext::From(script_state));
}
return speech_synthesis_;
}

Powered by Google App Engine
This is Rietveld 408576698