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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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/platform/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 2d986a19d314cef93105b33d3a40f0e93487e63d..b5665c53f93c821ea55d8207811f81d9ae528f80 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -179,7 +179,7 @@ void ThreadHeap::detach(ThreadState* thread) {
MutexLocker locker(m_threadAttachMutex);
thread->runTerminationGC();
ASSERT(m_threads.contains(thread));
- m_threads.remove(thread);
+ m_threads.erase(thread);
isLastThread = m_threads.isEmpty();
}
if (thread->isMainThread())

Powered by Google App Engine
This is Rietveld 408576698