Files
Brian R. Bondy d15f720f3c Skip stats usage pings on Brave Origin branded builds (#36547)
Add an enable_brave_stats_updater buildflag that defaults to
!is_brave_origin_branded, following the pattern used by other features
(enable_brave_ads, enable_brave_rewards, etc.). On Brave Origin builds,
exclude brave_stats_updater.cc/.h and its tests via GN, guard callers
with #if BUILDFLAG, and put a static_assert in the header so any
accidental include fails with a clear error.

Resolves https://github.com/brave/brave-browser/issues/55595
2026-05-22 11:52:15 -04:00

17 lines
536 B
Plaintext

# Copyright (c) 2024 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/.
import("//brave/components/brave_origin/buildflags/buildflags.gni")
declare_args() {
brave_stats_updater_url = ""
enable_brave_stats_updater = !is_brave_origin_branded
}
if (is_official_build && enable_brave_stats_updater) {
assert(brave_stats_updater_url != "")
}