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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 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/modules/payments/PaymentAppManager.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp b/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
index 49a31af2f175ae8a12930ec858f0da63623af28b..fd96130b87489e5e2c0603430e594c745c0916c4 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
@@ -44,7 +44,7 @@ struct TypeConverter<PaymentAppManifestPtr, blink::PaymentAppManifest> {
output->icon = input.hasIcon() ? input.icon() : WTF::String();
if (input.hasOptions()) {
for (size_t i = 0; i < input.options().size(); ++i) {
- output->options.append(PaymentAppOption::From(input.options()[i]));
+ output->options.push_back(PaymentAppOption::From(input.options()[i]));
}
}
return output;
@@ -59,7 +59,7 @@ struct TypeConverter<blink::PaymentAppManifest, PaymentAppManifestPtr> {
output.setIcon(input->icon);
blink::HeapVector<blink::PaymentAppOption> options;
for (const auto& option : input->options) {
- options.append(mojo::ConvertTo<blink::PaymentAppOption>(option));
+ options.push_back(mojo::ConvertTo<blink::PaymentAppOption>(option));
}
output.setOptions(options);
return output;
@@ -75,7 +75,7 @@ struct TypeConverter<blink::PaymentAppOption, PaymentAppOptionPtr> {
output.setId(input->id);
Vector<WTF::String> enabledMethods;
for (const auto& method : input->enabled_methods) {
- enabledMethods.append(method);
+ enabledMethods.push_back(method);
}
output.setEnabledMethods(enabledMethods);
return output;

Powered by Google App Engine
This is Rietveld 408576698