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

Unified Diff: third_party/WebKit/Source/core/dom/StringCallback.cpp

Issue 2098433002: Remove ExecutionContextTask::taskNameForInstrumentation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/dom/StringCallback.cpp
diff --git a/third_party/WebKit/Source/core/dom/StringCallback.cpp b/third_party/WebKit/Source/core/dom/StringCallback.cpp
index 7b30d454b921fcc6e4ea56f3ba8fb2c350548c69..80d797773cdde645d0cde625a2e3a388c6d61675 100644
--- a/third_party/WebKit/Source/core/dom/StringCallback.cpp
+++ b/third_party/WebKit/Source/core/dom/StringCallback.cpp
@@ -42,9 +42,9 @@ namespace {
class DispatchCallbackTask final : public ExecutionContextTask {
public:
- static std::unique_ptr<DispatchCallbackTask> create(StringCallback* callback, const String& data, const String& taskName)
+ static std::unique_ptr<DispatchCallbackTask> create(StringCallback* callback, const String& data)
{
- return wrapUnique(new DispatchCallbackTask(callback, data, taskName));
+ return wrapUnique(new DispatchCallbackTask(callback, data));
}
void performTask(ExecutionContext*) override
@@ -52,29 +52,22 @@ public:
m_callback->handleEvent(m_data);
}
- String taskNameForInstrumentation() const override
- {
- return m_taskName;
- }
-
private:
- DispatchCallbackTask(StringCallback* callback, const String& data, const String& taskName)
+ DispatchCallbackTask(StringCallback* callback, const String& data)
: m_callback(callback)
, m_data(data)
- , m_taskName(taskName)
{
}
Persistent<StringCallback> m_callback;
const String m_data;
- const String m_taskName;
};
} // namespace
void StringCallback::scheduleCallback(StringCallback* callback, ExecutionContext* context, const String& data, const String& instrumentationName)
{
- context->postTask(BLINK_FROM_HERE, DispatchCallbackTask::create(callback, data, instrumentationName));
+ context->postTask(BLINK_FROM_HERE, DispatchCallbackTask::create(callback, data), instrumentationName);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698