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

Unified Diff: components/sync/core/base_node.cc

Issue 2260953002: Supplimentary identifier for passwords specific (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format 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/core/base_node.cc
diff --git a/components/sync/core/base_node.cc b/components/sync/core/base_node.cc
index bddbeef922b903d6ef8756698f0bde93d78fcd5a..c09ad6a3652d901d39ceb06a4eeeac6c65c3a7c3 100644
--- a/components/sync/core/base_node.cc
+++ b/components/sync/core/base_node.cc
@@ -246,6 +246,12 @@ const sync_pb::PasswordSpecificsData& BaseNode::GetPasswordSpecifics() const {
return *password_data_;
}
+const sync_pb::PasswordSpecificsMetadata&
+BaseNode::GetPasswordSpecificsMetadata() const {
+ DCHECK_EQ(GetModelType(), PASSWORDS);
+ return GetEntitySpecifics().password().unencrypted_metadata();
+}
+
const sync_pb::TypedUrlSpecifics& BaseNode::GetTypedUrlSpecifics() const {
DCHECK_EQ(GetModelType(), TYPED_URLS);
return GetEntitySpecifics().typed_url();

Powered by Google App Engine
This is Rietveld 408576698