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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReader.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/fileapi/FileReader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReader.cpp b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
index 805822b5de986f891f76341a30fa185e542c4269..68f23f6463445b70277b1d4b24ea72bd6863d92d 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
@@ -135,7 +135,7 @@ class FileReader::ThrottlingController final
m_runningReaders.size() < m_maxRunningReaders) {
reader->executePendingRead();
ASSERT(!m_runningReaders.contains(reader));
- m_runningReaders.add(reader);
+ m_runningReaders.insert(reader);
return;
}
m_pendingReaders.append(reader);
@@ -170,7 +170,7 @@ class FileReader::ThrottlingController final
return;
FileReader* reader = m_pendingReaders.takeFirst();
reader->executePendingRead();
- m_runningReaders.add(reader);
+ m_runningReaders.insert(reader);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/EventDispatcher.cpp ('k') | third_party/WebKit/Source/core/frame/FrameConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698