Commit 3bfc3534 authored by Chris Fredrickson's avatar Chris Fredrickson Committed by Commit Bot

Reuse IdentifiabilityStudySettings::IsSurfaceAllowed instead of repeating most of it.

Change-Id: I0168ff4b278c1542600313dc7f3c1d7bed3d580b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2492600
Commit-Queue: Chris Fredrickson <cfredric@google.com>
Commit-Queue: Asanka Herath <asanka@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@google.com>
Reviewed-by: default avatarAsanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819975}
parent 22e394d1
......@@ -138,13 +138,7 @@ bool IdentifiabilityStudySettings::IsTypeAllowed(
bool IdentifiabilityStudySettings::IsWebFeatureAllowed(
mojom::WebFeature feature) const {
if (LIKELY(!is_enabled_))
return false;
if (LIKELY(!is_any_surface_or_type_blocked_))
return true;
return provider_->IsSurfaceAllowed(IdentifiableSurface::FromTypeAndToken(
return IsSurfaceAllowed(IdentifiableSurface::FromTypeAndToken(
IdentifiableSurface::Type::kWebFeature, feature));
}
......
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