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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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/WorkerEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
index f12505736730e8c6a1fc1f1650401d49a2ad850b..a83a6ab9899862308656fa0ac78d2b480c61a86e 100644
--- a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
@@ -57,7 +57,7 @@ bool WorkerEventQueue::enqueueEvent(Event* event) {
return false;
InspectorInstrumentation::asyncTaskScheduled(
event->target()->getExecutionContext(), event->type(), event);
- m_pendingEvents.add(event);
+ m_pendingEvents.insert(event);
m_workerGlobalScope->postTask(
TaskType::UnspecedTimer, BLINK_FROM_HERE,
createSameThreadTask(&WorkerEventQueue::dispatchEvent,

Powered by Google App Engine
This is Rietveld 408576698