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

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

Issue 2278333002: Supplimentary identifier for passwords specific (Closed)
Patch Set: Supplimentary identifier for passwords specific. 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
« no previous file with comments | « components/sync/protocol/password_specifics.proto ('k') | components/sync/syncable/nigori_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e4f0f2347307b8d80829777cd2a942bddcb38080..1397db8c44cb38528c8e65f9794e899606cd3578 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());
@@ -607,6 +614,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;
}
« no previous file with comments | « components/sync/protocol/password_specifics.proto ('k') | components/sync/syncable/nigori_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698