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

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

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert 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 ced3d516f0a0b1f6195bf8c2886eeb45a3fc2518..f0f337c432f10dd21c324c539310a73be11c11e3 100644
--- a/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -31,7 +31,6 @@
#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"
@@ -68,7 +67,7 @@ SpeechSynthesis* DOMWindowSpeechSynthesis::speechSynthesis(
ScriptState* script_state) {
if (!speech_synthesis_) {
speech_synthesis_ =
- SpeechSynthesis::Create(ExecutionContext::From(script_state));
+ SpeechSynthesis::Create(script_state->GetExecutionContext());
}
return speech_synthesis_;
}

Powered by Google App Engine
This is Rietveld 408576698