| // Copyright 2022 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "components/aggregation_service/parsing_utils.h" |
| #include "components/aggregation_service/aggregation_coordinator_utils.h" |
| namespace aggregation_service { |
| std::optional<url::Origin> ParseAggregationCoordinator(const std::string& str) { |
| auto origin = url::Origin::Create(GURL(str)); |
| if (IsAggregationCoordinatorOriginAllowed(origin)) { |
| } // namespace aggregation_service |