-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use buildflag instead of defines gn var #17443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
components/brave_vpn/browser/connection/win/brave_vpn_helper/BUILD.gn
Outdated
Show resolved
Hide resolved
616876e
to
4e93e4f
Compare
Uplift of #17443 (squashed) to beta
import("//build/buildflag_header.gni") | ||
import("buildflags.gni") | ||
|
||
buildflag_header("buildflags") { | ||
header = "buildflags.h" | ||
flags = [ "ENABLE_BRAVE_VPN=$enable_brave_vpn" ] | ||
|
||
if (is_win) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This absolutely does not belong here. We shouldn't be exposing channel information through a brave_vpn buildflag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's really no reason for the vpn helper to be in components in the first place since it's win specific so it can just use install_static::GetChromeChannel
plus there are already layering violations in here with install_static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed brave/brave-browser#35260 and working on it from #20754 branch.
Resolves brave/brave-browser#28848
No functional changes.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: