Commit 667813f4 authored by Parastoo Geranmayeh's avatar Parastoo Geranmayeh Committed by Commit Bot

[AF] profiles == should only consider primary members

The secondary members should not be considered while comparing
profiles.

Change-Id: I56c7b19f5da27b2f7c147b0d005b0686c40a39a9
Reviewed-on: https://chromium-review.googlesource.com/c/1394930
Commit-Queue: Parastoo Geranmayeh <parastoog@google.com>
Reviewed-by: default avatarRoger McFarlane <rogerm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619785}
parent b9d80fe4
...@@ -447,8 +447,6 @@ int AutofillProfile::Compare(const AutofillProfile& profile) const { ...@@ -447,8 +447,6 @@ int AutofillProfile::Compare(const AutofillProfile& profile) const {
bool AutofillProfile::EqualsSansOrigin(const AutofillProfile& profile) const { bool AutofillProfile::EqualsSansOrigin(const AutofillProfile& profile) const {
return guid() == profile.guid() && return guid() == profile.guid() &&
language_code() == profile.language_code() && language_code() == profile.language_code() &&
is_client_validity_states_updated() ==
profile.is_client_validity_states_updated() &&
Compare(profile) == 0; Compare(profile) == 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment