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

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

Issue 1916283003: [K6] Replace bind() + GCed pointers with retainedRef() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_5c
Patch Set: Rebase Created 4 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/InProcessWorkerBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
index 44dd3da33ba714cc77d8c9113e054ae6727798c3..7b8256ffbe8dcaa5c644c418284be976d5b0fabd 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -56,8 +56,8 @@ bool InProcessWorkerBase::initialize(ExecutionContext* context, const String& ur
scriptURL,
DenyCrossOriginRequests,
context->securityContext().addressSpace(),
- bind(&InProcessWorkerBase::onResponse, this),
- bind(&InProcessWorkerBase::onFinished, this));
+ bind(&InProcessWorkerBase::onResponse, retainedRef(this)),
+ bind(&InProcessWorkerBase::onFinished, retainedRef(this)));
m_contextProxy = createInProcessWorkerGlobalScopeProxy(context);

Powered by Google App Engine
This is Rietveld 408576698