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

Unified Diff: third_party/WebKit/Source/web/WebSearchableFormData.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
Index: third_party/WebKit/Source/web/WebSearchableFormData.cpp
diff --git a/third_party/WebKit/Source/web/WebSearchableFormData.cpp b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
index 9c440b365be491e47ccecd107be1bd0bd5941ec8..1cee88d8982bbb3d3a0af891bd1166a89f110cb6 100644
--- a/third_party/WebKit/Source/web/WebSearchableFormData.cpp
+++ b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
@@ -197,10 +197,10 @@ bool buildSearchString(const HTMLFormElement& form,
for (const auto& entry : formData->entries()) {
if (!encodedString->isEmpty())
- encodedString->append('&');
+ encodedString->push_back('&');
FormDataEncoder::encodeStringAsFormData(*encodedString, entry->name(),
FormDataEncoder::NormalizeCRLF);
- encodedString->append('=');
+ encodedString->push_back('=');
if (&control == textElement) {
encodedString->append("{searchTerms}", 13);
isElementFound = true;
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698