summaryrefslogtreecommitdiffstats
path: root/sync/protocol
diff options
context:
space:
mode:
authorrouslan <rouslan@chromium.org>2015-05-22 09:57:10 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-22 16:57:52 +0000
commit39765cfcec81f43376d609c092975c423f019921 (patch)
tree55642fbee3c9527f88ee4a7201a87b32cfc63780 /sync/protocol
parent38344c8cd965062411bed6b178f75c41220f6190 (diff)
downloadchromium_src-39765cfcec81f43376d609c092975c423f019921.zip
chromium_src-39765cfcec81f43376d609c092975c423f019921.tar.gz
chromium_src-39765cfcec81f43376d609c092975c423f019921.tar.bz2
[sync] Add AUTOFILL_WALLET_METADATA sync datatype.
BUG=481595 Review URL: https://codereview.chromium.org/1125143006 Cr-Commit-Position: refs/heads/master@{#331130}
Diffstat (limited to 'sync/protocol')
-rw-r--r--sync/protocol/nigori_specifics.proto4
-rw-r--r--sync/protocol/proto_value_conversions_unittest.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/sync/protocol/nigori_specifics.proto b/sync/protocol/nigori_specifics.proto
index 407281f..eaefe78 100644
--- a/sync/protocol/nigori_specifics.proto
+++ b/sync/protocol/nigori_specifics.proto
@@ -128,5 +128,9 @@ message NigoriSpecifics {
// Boolean corresponding to whether app list items should be encrypted.
optional bool encrypt_app_list = 38;
+
+ // Boolean corresponding to whether usage count and last use date of Wallet
+ // data should be encrypted.
+ optional bool encrypt_autofill_wallet_metadata = 39;
}
diff --git a/sync/protocol/proto_value_conversions_unittest.cc b/sync/protocol/proto_value_conversions_unittest.cc
index ab4e1e4..9796c68 100644
--- a/sync/protocol/proto_value_conversions_unittest.cc
+++ b/sync/protocol/proto_value_conversions_unittest.cc
@@ -57,7 +57,7 @@ TEST_F(ProtoValueConversionsTest, ProtoChangeCheck) {
// If this number changes, that means we added or removed a data
// type. Don't forget to add a unit test for {New
// type}SpecificsToValue below.
- EXPECT_EQ(35, MODEL_TYPE_COUNT);
+ EXPECT_EQ(36, MODEL_TYPE_COUNT);
// We'd also like to check if we changed any field in our messages.
// However, that's hard to do: sizeof could work, but it's
@@ -325,8 +325,8 @@ TEST_F(ProtoValueConversionsTest, EntitySpecificsToValue) {
SET_FIELD(theme);
SET_FIELD(typed_url);
SET_FIELD(wifi_credential);
-
SET_FIELD(autofill_wallet);
+ SET_FIELD(wallet_metadata);
#undef SET_FIELD