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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp

Issue 2554693003: Migrate WTF::Vector::append() to ::push_back() [part 1 of N] (Closed)
Patch Set: rebase Created 4 years 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/bindings/core/v8/RejectedPromises.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
index df79a052a3f2f240c70c785eb8261017ccc3723b..9b1c254946b3f6d8ac4039224ba44d142abc2993 100644
--- a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
@@ -269,7 +269,7 @@ void RejectedPromises::processQueueNow(std::unique_ptr<MessageQueue> queue) {
if (!message->hasHandler()) {
message->report();
message->makePromiseWeak();
- m_reportedAsErrors.append(std::move(message));
+ m_reportedAsErrors.push_back(std::move(message));
if (m_reportedAsErrors.size() > maxReportedHandlersPendingResolution)
m_reportedAsErrors.remove(0, maxReportedHandlersPendingResolution / 10);
}
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/Iterable.h ('k') | third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698