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

Unified Diff: third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp

Issue 2612903007: Migrate WTF::Vector::append() to ::push_back() [part 15 of N] (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebFormElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp b/third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp
index d65a94f061efc55d7a734c6e55d8c6a9f46072e7..85fd50a99fefa1b49cd1ec22695504a9a5e5ea69 100644
--- a/third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp
@@ -45,7 +45,7 @@ void WebFileChooserCompletionImpl::didChooseFile(
const WebVector<WebString>& fileNames) {
Vector<FileChooserFileInfo> fileInfo;
for (size_t i = 0; i < fileNames.size(); ++i)
- fileInfo.append(FileChooserFileInfo(fileNames[i]));
+ fileInfo.push_back(FileChooserFileInfo(fileNames[i]));
m_fileChooser->chooseFiles(fileInfo);
// This object is no longer needed.
delete this;
@@ -56,14 +56,15 @@ void WebFileChooserCompletionImpl::didChooseFile(
Vector<FileChooserFileInfo> fileInfo;
for (size_t i = 0; i < files.size(); ++i) {
if (files[i].fileSystemURL.isEmpty()) {
- fileInfo.append(FileChooserFileInfo(files[i].path, files[i].displayName));
+ fileInfo.push_back(
+ FileChooserFileInfo(files[i].path, files[i].displayName));
} else {
FileMetadata metadata;
metadata.modificationTime = files[i].modificationTime * msPerSecond;
metadata.length = files[i].length;
metadata.type = files[i].isDirectory ? FileMetadata::TypeDirectory
: FileMetadata::TypeFile;
- fileInfo.append(FileChooserFileInfo(files[i].fileSystemURL, metadata));
+ fileInfo.push_back(FileChooserFileInfo(files[i].fileSystemURL, metadata));
}
}
m_fileChooser->chooseFiles(fileInfo);
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698