| Index: components/safe_browsing_db/util.cc
|
| diff --git a/components/safe_browsing_db/util.cc b/components/safe_browsing_db/util.cc
|
| index f86fc771b1a99fe6c9932713ebfa49e9b82a135f..737af8c9e4d294e2438f33d6d713e4aac92096ed 100644
|
| --- a/components/safe_browsing_db/util.cc
|
| +++ b/components/safe_browsing_db/util.cc
|
| @@ -38,6 +38,16 @@ ThreatMetadata::ThreatMetadata(const ThreatMetadata& other) = default;
|
|
|
| ThreatMetadata::~ThreatMetadata() {}
|
|
|
| +bool ThreatMetadata::operator==(const ThreatMetadata& other) const {
|
| + return threat_pattern_type == other.threat_pattern_type &&
|
| + api_permissions == other.api_permissions &&
|
| + population_id == other.population_id;
|
| +}
|
| +
|
| +bool ThreatMetadata::operator!=(const ThreatMetadata& other) const {
|
| + return !operator==(other);
|
| +}
|
| +
|
| // SBCachedFullHashResult ------------------------------------------------------
|
|
|
| SBCachedFullHashResult::SBCachedFullHashResult() {}
|
|
|