This PR corrects several places where `BASE_FEATURE` is being used to rely on the two-arg variant of this macro. This particular PR has no functional changes, and the only feature declarations affected are the ones for which the feature-name constant, and the actual value are identical. The particular issue for this will be left open so subsequent work for the other features can be followed up on. Bug: https://github.com/brave/brave-browser/issues/50492
19 lines
723 B
C++
19 lines
723 B
C++
// Copyright (c) 2021 The Brave Authors. All rights reserved.
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
#include "brave/components/debounce/core/common/features.h"
|
|
|
|
#include "base/feature_list.h"
|
|
|
|
namespace debounce::features {
|
|
|
|
// When enabled, Brave will try to parse tracking URLs of the form
|
|
// https://tracker.example.com/?url=http://final.example.com/
|
|
// and automatically redirect to the final URL without sending any
|
|
// network requests to the tracker.
|
|
BASE_FEATURE(kBraveDebounce, base::FEATURE_ENABLED_BY_DEFAULT);
|
|
|
|
} // namespace debounce::features
|