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

Unified Diff: components/sync/protocol/proto_value_conversions.cc

Issue 2278333002: Supplimentary identifier for passwords specific (Closed)
Patch Set: adressed cmments Created 4 years, 4 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: components/sync/protocol/proto_value_conversions.cc
diff --git a/components/sync/protocol/proto_value_conversions.cc b/components/sync/protocol/proto_value_conversions.cc
index 5ad15c4de04abe18ea98a82ee488b91ac570eaa2..5cf48971049c06d7cbdfc173b87bd76527ba9082 100644
--- a/components/sync/protocol/proto_value_conversions.cc
+++ b/components/sync/protocol/proto_value_conversions.cc
@@ -136,6 +136,13 @@ std::unique_ptr<base::DictionaryValue> EncryptedDataToValue(
return value;
}
+std::unique_ptr<base::DictionaryValue> PasswordSpecificsMetadataToValue(
+ const sync_pb::PasswordSpecificsMetadata& proto) {
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ SET_STR(url);
+ return value;
+}
+
std::unique_ptr<base::DictionaryValue> AppSettingsToValue(
const sync_pb::AppNotificationSettings& proto) {
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
@@ -606,6 +613,7 @@ std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue(
const sync_pb::PasswordSpecifics& proto) {
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
SET(encrypted, EncryptedDataToValue);
+ SET(unencrypted_metadata, PasswordSpecificsMetadataToValue);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698