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

Unified Diff: content/browser/payments/payment_app_database.cc

Issue 2562873002: [PaymentApp] label field was changed to name field in PaymentAppOption. (Closed)
Patch Set: update test 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: content/browser/payments/payment_app_database.cc
diff --git a/content/browser/payments/payment_app_database.cc b/content/browser/payments/payment_app_database.cc
index 9f18a2dc242e44427a398d3af2cb6f1bdbb3122e..3c54cb7f97af7a4700d61ee9452a69ae4791adfb 100644
--- a/content/browser/payments/payment_app_database.cc
+++ b/content/browser/payments/payment_app_database.cc
@@ -29,13 +29,13 @@ payments::mojom::PaymentAppManifestPtr DeserializePaymentAppManifest(
payments::mojom::PaymentAppManifestPtr manifest =
payments::mojom::PaymentAppManifest::New();
- manifest->label = manifest_proto.label();
+ manifest->name = manifest_proto.name();
if (manifest_proto.has_icon())
manifest->icon = manifest_proto.icon();
for (const auto& option_proto : manifest_proto.options()) {
payments::mojom::PaymentAppOptionPtr option =
payments::mojom::PaymentAppOption::New();
- option->label = option_proto.label();
+ option->name = option_proto.name();
if (option_proto.has_icon())
option->icon = option_proto.icon();
option->id = option_proto.id();
@@ -53,13 +53,13 @@ bool SerializePaymentAppManifest(
DCHECK(manifest);
PaymentAppManifestProto manifest_proto;
- manifest_proto.set_label(manifest->label);
+ manifest_proto.set_name(manifest->name);
if (manifest->icon)
manifest_proto.set_icon(manifest->icon.value());
for (const auto& option : manifest->options) {
PaymentAppOptionProto* option_proto = manifest_proto.add_options();
- option_proto->set_label(option->label);
+ option_proto->set_name(option->name);
if (option->icon)
option_proto->set_icon(option->icon.value());
option_proto->set_id(option->id);

Powered by Google App Engine
This is Rietveld 408576698