diff --git a/components/subresource_filter/core/browser/subresource_filter_features.cc b/components/subresource_filter/core/browser/subresource_filter_features.cc
index 33c2e0878108e..c52ce737dcb3b 100644
--- a/components/subresource_filter/core/browser/subresource_filter_features.cc
+++ b/components/subresource_filter/core/browser/subresource_filter_features.cc
@@ -342,10 +342,6 @@ bool Configuration::operator==(const Configuration& rhs) const {
   return tie(*this) == tie(rhs);
 }
 
-bool Configuration::operator!=(const Configuration& rhs) const {
-  return !(*this == rhs);
-}
-
 std::unique_ptr<base::trace_event::TracedValue>
 Configuration::ActivationConditions::ToTracedValue() const {
   auto value = std::make_unique<base::trace_event::TracedValue>();
diff --git a/components/subresource_filter/core/browser/subresource_filter_features.h b/components/subresource_filter/core/browser/subresource_filter_features.h
index 22f56f69d0d31..41ba85bc9fc8a 100644
--- a/components/subresource_filter/core/browser/subresource_filter_features.h
+++ b/components/subresource_filter/core/browser/subresource_filter_features.h
@@ -103,7 +103,6 @@ struct Configuration {
   Configuration& operator=(Configuration&&);
 
   bool operator==(const Configuration& rhs) const;
-  bool operator!=(const Configuration& rhs) const;
 
   void AddToValue(base::trace_event::TracedValue*) const;
   std::unique_ptr<base::trace_event::TracedValue> ToTracedValue() const;
diff --git a/components/subresource_filter/tools/rule_parser/rule.cc b/components/subresource_filter/tools/rule_parser/rule.cc
index ceef4e8eb161b..a8759b2f02e38 100644
--- a/components/subresource_filter/tools/rule_parser/rule.cc
+++ b/components/subresource_filter/tools/rule_parser/rule.cc
@@ -149,11 +149,6 @@ CssRule::~CssRule() = default;
 
 CssRule& CssRule::operator=(const CssRule&) = default;
 
-bool CssRule::operator==(const CssRule& other) const {
-  return is_allowlist == other.is_allowlist && domains == other.domains &&
-         css_selector == other.css_selector;
-}
-
 url_pattern_index::proto::CssRule CssRule::ToProtobuf() const {
   url_pattern_index::proto::CssRule result;
 
diff --git a/components/subresource_filter/tools/rule_parser/rule.h b/components/subresource_filter/tools/rule_parser/rule.h
index 3fd4cf77eecce..38f2521379290 100644
--- a/components/subresource_filter/tools/rule_parser/rule.h
+++ b/components/subresource_filter/tools/rule_parser/rule.h
@@ -52,7 +52,6 @@ struct UrlRule {
   UrlRule& operator=(const UrlRule&);
 
   bool operator==(const UrlRule& other) const;
-  bool operator!=(const UrlRule& other) const { return !operator==(other); }
 
   // Returns a protobuf representation of the rule.
   url_pattern_index::proto::UrlRule ToProtobuf() const;
@@ -102,8 +101,7 @@ struct CssRule {
   ~CssRule();
   CssRule& operator=(const CssRule&);
 
-  bool operator==(const CssRule& other) const;
-  bool operator!=(const CssRule& other) const { return !operator==(other); }
+  friend bool operator==(const CssRule&, const CssRule&) = default;
 
   // Returns a protobuf representation of the rule.
   url_pattern_index::proto::CssRule ToProtobuf() const;