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

Unified Diff: sync/protocol/proto_value_conversions.cc

Issue 1140653006: [sync] Add WalletMetadataSpecifics protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work Created 5 years, 7 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 | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_value_conversions.cc
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc
index 758729b7d4b78fb7483c754e0b4d573149a615f8..b6b23edef8f24daf8420383e4834110bd400b90a 100644
--- a/sync/protocol/proto_value_conversions.cc
+++ b/sync/protocol/proto_value_conversions.cc
@@ -358,6 +358,16 @@ scoped_ptr<base::DictionaryValue> AutofillProfileSpecificsToValue(
return value;
}
+scoped_ptr<base::DictionaryValue> WalletMetadataSpecificsToValue(
+ const sync_pb::WalletMetadataSpecifics& proto) {
+ scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ SET_ENUM(type, GetWalletMetadataTypeString);
+ SET_STR(id);
+ SET_INT64(use_count);
+ SET_INT64(use_date);
+ return value;
+}
+
scoped_ptr<base::DictionaryValue> AutofillWalletSpecificsToValue(
const sync_pb::AutofillWalletSpecifics& proto) {
scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
@@ -730,6 +740,7 @@ scoped_ptr<base::DictionaryValue> EntitySpecificsToValue(
SET_FIELD(autofill, AutofillSpecificsToValue);
SET_FIELD(autofill_profile, AutofillProfileSpecificsToValue);
SET_FIELD(autofill_wallet, AutofillWalletSpecificsToValue);
+ SET_FIELD(wallet_metadata, WalletMetadataSpecificsToValue);
SET_FIELD(bookmark, BookmarkSpecificsToValue);
SET_FIELD(device_info, DeviceInfoSpecificsToValue);
SET_FIELD(dictionary, DictionarySpecificsToValue);
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698