Skip to content

Commit

Permalink
Set the fingerprint for logged in/out user infos. (#35)
Browse files Browse the repository at this point in the history
* Set the fingerprint for logged in/out user infos.

* Update the version of virtual-people-common.
  • Loading branch information
tcsnfkx authored Mar 31, 2022
1 parent 0e81079 commit 420f207
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ common_cpp_deps()
# Virtual-people-common
http_archive(
name = "virtual_people_common",
sha256 = "7fcc40826493f824b5ec083822a9e430ddfbf8f235171149ae9a1c6896984d88",
strip_prefix = "virtual-people-common-562566aa13fb67116f034890fb3b589eeae0aa89",
url = "https://github.com/world-federation-of-advertisers/virtual-people-common/archive/562566aa13fb67116f034890fb3b589eeae0aa89.tar.gz",
sha256 = "12e42a3d449771090292fbac321532b794b495607493b870a52101c7d356c7bd",
strip_prefix = "virtual-people-common-8dd8d59f0cc9ee5e4c446031790973a6cb51970e",
url = "https://github.com/world-federation-of-advertisers/virtual-people-common/archive/8dd8d59f0cc9ee5e4c446031790973a6cb51970e.tar.gz",
)
6 changes: 6 additions & 0 deletions src/main/cc/wfa/virtual_people/core/labeler/labeler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ void SetFingerprints(LabelerEvent& event) {
SetUserInfoFingerprint(
*profile_info->mutable_proprietary_id_space_1_user_info());
}
if (profile_info->has_logged_in_id_user_info()) {
SetUserInfoFingerprint(*profile_info->mutable_logged_in_id_user_info());
}
if (profile_info->has_logged_out_id_user_info()) {
SetUserInfoFingerprint(*profile_info->mutable_logged_out_id_user_info());
}
}

absl::Status Labeler::Label(const LabelerInput& input,
Expand Down

0 comments on commit 420f207

Please sign in to comment.