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

Unified Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 2752593003: Migrate WTF::Deque::first() to ::front() (Closed)
Patch Set: one more platform specific reference Created 3 years, 9 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/websockets/DocumentWebSocketChannel.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
index 82f47cddb1c28ae069d8876779e2ed7fbce044a6..e4e75a3aef7452b102c269c6f1ffe4cce2672671 100644
--- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
+++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
@@ -397,7 +397,7 @@ void DocumentWebSocketChannel::processSendQueue() {
DCHECK(m_handle);
uint64_t consumedBufferedAmount = 0;
while (!m_messages.isEmpty() && !m_blobLoader) {
- Message* message = m_messages.first().get();
+ Message* message = m_messages.front().get();
if (m_sendingQuota == 0 && message->type != MessageTypeClose)
break;
switch (message->type) {
@@ -672,9 +672,9 @@ void DocumentWebSocketChannel::didFinishLoadingBlob(DOMArrayBuffer* buffer) {
DCHECK(m_handle);
// The loaded blob is always placed on m_messages[0].
DCHECK_GT(m_messages.size(), 0u);
- DCHECK_EQ(m_messages.first()->type, MessageTypeBlob);
+ DCHECK_EQ(m_messages.front()->type, MessageTypeBlob);
// We replace it with the loaded blob.
- m_messages.first() = new Message(buffer);
+ m_messages.front() = new Message(buffer);
processSendQueue();
}

Powered by Google App Engine
This is Rietveld 408576698