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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase 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/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index dafe916b9563d86da938dbe4cea8e5ddcac4a5ee..aa2836e14ac36870b5874b7c3069b564b3ef1d9d 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1549,13 +1549,13 @@ bool FrameLoader::shouldClose(bool isReload) {
// Store all references to each subframe in advance since beforeunload's event
// handler may modify frame
HeapVector<Member<LocalFrame>> targetFrames;
- targetFrames.append(m_frame);
+ targetFrames.push_back(m_frame);
for (Frame* child = m_frame->tree().firstChild(); child;
child = child->tree().traverseNext(m_frame)) {
// FIXME: There is not yet any way to dispatch events to out-of-process
// frames.
if (child->isLocalFrame())
- targetFrames.append(toLocalFrame(child));
+ targetFrames.push_back(toLocalFrame(child));
}
bool shouldClose = false;

Powered by Google App Engine
This is Rietveld 408576698