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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.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/encryptedmedia/MediaKeySession.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
index 02128d9c900173584204fb5ef5453db69c960db1..1d2c60483796e7997cd703d9b9bd139f1dba5749 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -35,7 +35,6 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
-#include "core/dom/ExecutionContext.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/GenericEventQueue.h"
@@ -366,7 +365,7 @@ MediaKeySession* MediaKeySession::Create(
MediaKeySession::MediaKeySession(ScriptState* script_state,
MediaKeys* media_keys,
WebEncryptedMediaSessionType session_type)
- : ContextLifecycleObserver(ExecutionContext::From(script_state)),
+ : ContextLifecycleObserver(script_state->GetExecutionContext()),
async_event_queue_(GenericEventQueue::Create(this)),
media_keys_(media_keys),
session_type_(session_type),
@@ -375,7 +374,7 @@ MediaKeySession::MediaKeySession(ScriptState* script_state,
is_uninitialized_(true),
is_callable_(false),
is_closed_(false),
- closed_promise_(new ClosedPromise(ExecutionContext::From(script_state),
+ closed_promise_(new ClosedPromise(script_state->GetExecutionContext(),
this,
ClosedPromise::kClosed)),
action_timer_(

Powered by Google App Engine
This is Rietveld 408576698