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

Unified Diff: third_party/WebKit/Source/core/workers/Worklet.cpp

Issue 2845533002: Worklet: Move Worklet::Initialize() into ThreadedWorklet for cleanup (Closed)
Patch Set: fix test failures 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/core/workers/Worklet.cpp
diff --git a/third_party/WebKit/Source/core/workers/Worklet.cpp b/third_party/WebKit/Source/core/workers/Worklet.cpp
index 1e6c2743977353df896cf4b145a2f75b8e63daf9..dfa704f07e1d6a00388a22978e724ba8a6a7e6a3 100644
--- a/third_party/WebKit/Source/core/workers/Worklet.cpp
+++ b/third_party/WebKit/Source/core/workers/Worklet.cpp
@@ -18,8 +18,6 @@ Worklet::Worklet(LocalFrame* frame)
void Worklet::ContextDestroyed(ExecutionContext*) {
DCHECK(IsMainThread());
- if (IsInitialized())
- GetWorkletGlobalScopeProxy()->TerminateWorkletGlobalScope();
frame_ = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698