| Index: third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| diff --git a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| index d1702a21204e661d03f793f5a1b250f39c635c0f..1ed6912aaba4e91e0379bf44331b1fabce238e2d 100644
|
| --- a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| +++ b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| @@ -364,7 +364,7 @@ void DOMWebSocket::connect(const String& url,
|
| // Fail if there're duplicated elements in |protocols|.
|
| HashSet<String> visited;
|
| for (size_t i = 0; i < protocols.size(); ++i) {
|
| - if (!visited.add(protocols[i]).isNewEntry) {
|
| + if (!visited.insert(protocols[i]).isNewEntry) {
|
| m_state = kClosed;
|
| exceptionState.throwDOMException(
|
| SyntaxError, "The subprotocol '" +
|
|
|