Index: third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp |
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp b/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp |
index d58013c098195d78b2ff592ad093502e8580a90d..d2949215ce35da6d5338a892246833d81fa68d05 100644 |
--- a/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp |
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp |
@@ -17,8 +17,8 @@ namespace blink { |
MainThreadWorklet::MainThreadWorklet(LocalFrame* frame) : Worklet(frame) {} |
-ScriptPromise MainThreadWorklet::import(ScriptState* script_state, |
- const String& url) { |
+ScriptPromise MainThreadWorklet::addModule(ScriptState* script_state, |
+ const String& url) { |
DCHECK(IsMainThread()); |
if (!GetExecutionContext()) { |
return ScriptPromise::RejectWithDOMException( |