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

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

Issue 2049003002: Wrap GCed raw pointer parameters of WTF::bind with Persistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 6990487f365860d2dffe2157c70718ba97312791..880efb51cc3d22aafd7b960e3f7fd4e5e1447268 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -57,8 +57,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, wrapPersistent(this)),
+ bind(&InProcessWorkerBase::onFinished, wrapPersistent(this)));
m_contextProxy = createInProcessWorkerGlobalScopeProxy(context);

Powered by Google App Engine
This is Rietveld 408576698