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

Unified Diff: third_party/WebKit/Source/modules/worklet/Worklet.cpp

Issue 1915153004: [K5] Replace bind() + non-GC pointers with unretained() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_4
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/modules/worklet/Worklet.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/Worklet.cpp b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
index 0c753df28fa2475070378fe46e9b5df1b903517a..3d5453bffe9dd8635c6c8051a5dcf52ca9a5c2b9 100644
--- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp
+++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
@@ -44,7 +44,7 @@ ScriptPromise Worklet::import(ScriptState* scriptState, const String& url)
m_scriptLoaders.last()->loadAsynchronously(*getExecutionContext(), scriptURL, DenyCrossOriginRequests,
getExecutionContext()->securityContext().addressSpace(),
bind(&Worklet::onResponse, this),
- bind(&Worklet::onFinished, this, m_scriptLoaders.last().get(), resolver));
+ bind(&Worklet::onFinished, this, unretainedUnsafe(m_scriptLoaders.last().get()), resolver));
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698