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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.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/modules/webaudio/BaseAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
index 29b446600e43a8984068cd45b4bb43c42dedf32d..43971019d1044f21fb78db2660e9c954023e3b84 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
@@ -288,7 +288,7 @@ ScriptPromise BaseAudioContext::decodeAudioData(
DCHECK_GT(rate, 0);
- m_decodeAudioResolvers.add(resolver);
+ m_decodeAudioResolvers.insert(resolver);
m_audioDecoder.decodeAsync(audioData, rate, successCallback, errorCallback,
resolver, this);
@@ -668,7 +668,7 @@ bool BaseAudioContext::releaseFinishedSourceNodes() {
continue;
if (handler == &node->handler()) {
handler->breakConnection();
- m_finishedSourceNodes.add(node);
+ m_finishedSourceNodes.insert(node);
didRemove = true;
break;
}

Powered by Google App Engine
This is Rietveld 408576698