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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: 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 1d2c60483796e7997cd703d9b9bd139f1dba5749..02128d9c900173584204fb5ef5453db69c960db1 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -35,6 +35,7 @@
#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"
@@ -365,7 +366,7 @@
MediaKeySession::MediaKeySession(ScriptState* script_state,
MediaKeys* media_keys,
WebEncryptedMediaSessionType session_type)
- : ContextLifecycleObserver(script_state->GetExecutionContext()),
+ : ContextLifecycleObserver(ExecutionContext::From(script_state)),
async_event_queue_(GenericEventQueue::Create(this)),
media_keys_(media_keys),
session_type_(session_type),
@@ -374,7 +375,7 @@
is_uninitialized_(true),
is_callable_(false),
is_closed_(false),
- closed_promise_(new ClosedPromise(script_state->GetExecutionContext(),
+ closed_promise_(new ClosedPromise(ExecutionContext::From(script_state),
this,
ClosedPromise::kClosed)),
action_timer_(

Powered by Google App Engine
This is Rietveld 408576698