-
Notifications
You must be signed in to change notification settings - Fork 871
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
Set channel specific vpn entry name #16854
Conversation
@@ -432,6 +434,8 @@ BraveBrowserProcessImpl::brave_vpn_os_connection_api() { | |||
|
|||
brave_vpn_os_connection_api_ = brave_vpn::CreateBraveVPNOSConnectionAPI( | |||
shared_url_loader_factory(), local_state()); | |||
brave_vpn_os_connection_api_->SetTargetVpnEntryName( |
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.
wdyt about to pass chrome::GetChannel()
to CreateBraveVPNOSConnectionAPI
to avoid additional calls and simplify interfaces?
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.
Done.
@@ -84,6 +85,22 @@ bool IsBraveVPNEnabled() { | |||
base::FeatureList::IsEnabled(skus::features::kSkusFeature); | |||
} | |||
|
|||
std::string GetBraveVPNEntryName(version_info::Channel channel) { | |||
const std::string entry_name(kBraveVPNEntryName); |
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.
I think we have to make kBraveVPNEntryName
internal constant for this function because it can be mistakenly used by anyone from the header. From now on, only this function can be used to determine the name of the connection.
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.
Done.
49a2e02
to
5a013f0
Compare
fix brave/brave-browser#28028
Resolves
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:
See the linked issue