Files
brave-core/resources/brave_grit.gni
T
Kevin SmithandBrian Clifton 9d18fb9342 Implement "Desktop Welcome Pages" feature (v2) (#26154)
* Implement "Desktop Welcome Pages" feature

* Split BraveBrowserCommandHandler out from brave_education

* An attempt to make browser commands closer match upstream.

- brave_education is based on whats_new
- brave_browser_commands is based on browser_commands

Fixes https://github.com/brave/brave-browser/issues/42562

Uses `use_brave_grit` / `brave_or_default_grit` as a
work-around to avoid patching the resources IDs in
`tools/gritsettings/resource_ids.spec`.

* Addressing all review feedback

Includes presubmit fixes and Chromium 133 rebase fixes

* Security review updates

* FIXUP: small review fixes

Fixed misspellings

* Fix for browser test

* FIXUP: fix VPN handler behavior case after refactor

Fixes Linux unit test

---------

Co-authored-by: Brian Clifton <brian@clifton.me>
2025-01-29 21:43:47 -07:00

35 lines
1.0 KiB
Plaintext

# Copyright (c) 2022 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("//tools/grit/grit_rule.gni")
brave_grit_resource_id_target = "//brave/resources:brave_resource_ids"
brave_grit_resource_id_file =
get_label_info(brave_grit_resource_id_target, "target_gen_dir") +
"/brave_resource_ids"
template("brave_grit") {
grit(target_name) {
forward_variables_from(invoker, "*")
resource_ids = brave_grit_resource_id_file
if (!defined(deps)) {
deps = []
}
deps += [ brave_grit_resource_id_target ]
}
}
template("brave_or_default_grit") {
if (defined(invoker.use_brave_grit) && invoker.use_brave_grit) {
brave_grit(target_name) {
forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY)
}
} else {
grit(target_name) {
forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY)
}
}
}