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

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

Issue 2562873002: [PaymentApp] label field was changed to name field in PaymentAppOption. (Closed)
Patch Set: rebase 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 e21bb765afb42d4b1157b2a6cde77d3c6185130d..765de426a7f91da0a7031f5003a9714ea057327b 100644
--- a/content/browser/payments/payment_app_database.cc
+++ b/content/browser/payments/payment_app_database.cc
@@ -64,13 +64,13 @@ void PaymentAppDatabase::DidFindRegistrationToWriteManifest(
}
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);
@@ -138,13 +138,13 @@ void PaymentAppDatabase::DidReadManifest(const ReadManifestCallback& callback,
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();
« no previous file with comments | « content/browser/payments/payment_app.proto ('k') | content/browser/payments/payment_app_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698