0
Files
src/content/browser/private_aggregation/private_aggregation_features.cc
Alex Turner 116d390d65 Create PrivateAggregationPendingContributions and wrapper classes
We plan to use the new class to support the new
`kPrivateAggregationApiErrorReporting` feature, which is currently
disabled by default (and not yet implemented).  In this cl, the main
class is empty, with a TODO to implement the logic.

However, the nested Wrapper class is a fairly basic union type that
conditionally contains either the main class (if the error reporting
feature is enabled) or a vector of contributions (if the feature is
disabled). This cl also switches some plumbing to use this new Wrapper
class, which will simplify future implementation work. It also moves the
definition of ContributionMergeKey to the new class to reflect the new
class's intended (eventual) role.

This cl should be a no-op, given the disabled feature.

Bug: 381788013
Change-Id: I92e4dcebfa786e0327cd12c9104b4dbc9760dc1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6079892
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Alex Turner <alexmt@chromium.org>
Reviewed-by: Dan McArdle <dmcardle@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414416}
2025-01-31 14:44:54 -08:00

20 lines
639 B
C++

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/private_aggregation/private_aggregation_features.h"
#include "base/feature_list.h"
namespace content {
BASE_FEATURE(kPrivateAggregationApiDebugModeRequires3pcEligibility,
"PrivateAggregationApiDebugModeRequires3pcEligibility",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kPrivateAggregationApiErrorReporting,
"PrivateAggregationApiErrorReporting",
base::FEATURE_DISABLED_BY_DEFAULT);
} // namespace content