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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp

Issue 2749753002: Migrate WTF::Deque::removeFirst() to ::pop_front() (Closed)
Patch Set: 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/fetch/BytesConsumerTestUtil.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp
index c33eab2e180fb5864bb92f9a4bb843606814f2c8..dd3b860dbe2b842d59548477f9ae0270205d0017 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp
@@ -60,17 +60,17 @@ Result BytesConsumerTestUtil::ReplayingBytesConsumer::beginRead(
*available = command.body().size() - m_offset;
return Result::Ok;
case Command::Done:
- m_commands.removeFirst();
+ m_commands.pop_front();
close();
return Result::Done;
case Command::Error: {
Error e(String::fromUTF8(command.body().data(), command.body().size()));
- m_commands.removeFirst();
+ m_commands.pop_front();
error(std::move(e));
return Result::Error;
}
case Command::Wait:
- m_commands.removeFirst();
+ m_commands.pop_front();
m_state = InternalState::Waiting;
TaskRunnerHelper::get(TaskType::Networking, m_executionContext)
->postTask(BLINK_FROM_HERE,
@@ -92,7 +92,7 @@ Result BytesConsumerTestUtil::ReplayingBytesConsumer::endRead(size_t read) {
return Result::Ok;
m_offset = 0;
- m_commands.removeFirst();
+ m_commands.pop_front();
return Result::Ok;
}

Powered by Google App Engine
This is Rietveld 408576698