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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.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/dom/MessagePort.cpp
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp
index 3bfd5bd6e8322793789ca9dc27596910980cc5af..ca49716c767e71823f1a2477ee953478abfce931 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp
@@ -259,7 +259,7 @@ std::unique_ptr<MessagePortChannelArray> MessagePort::disentanglePorts(
"Port at index " + String::number(i) + " is " + type + ".");
return nullptr;
}
- visited.add(port);
+ visited.insert(port);
}
UseCounter::count(context, UseCounter::MessagePortsTransferred);

Powered by Google App Engine
This is Rietveld 408576698