-
Notifications
You must be signed in to change notification settings - Fork 904
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
Remove unsupported components from brave://components #7331
Conversation
Checked the list of components on the other OSs Windows, macOS and Android, updated the list of components to be removed and committed a fix that removes them. |
d06ce68
to
a52403c
Compare
chromium_src/components/component_updater/component_installer.cc
Outdated
Show resolved
Hide resolved
PR lgtm, added minor comments. @mherrmann - please re-run this PR with |
a52403c
to
18d4691
Compare
chromium_src/components/component_updater/component_installer.cc
Outdated
Show resolved
Hide resolved
chromium_src/components/component_updater/component_installer.cc
Outdated
Show resolved
Hide resolved
chromium_src/components/component_updater/component_installer.cc
Outdated
Show resolved
Hide resolved
* Legacy TLS Deprecation Config * Federated Learning of Cohorts * Autofill States Data * Subresource Filter Rules * Crowd Deny * Certificate Error Assistant * Safety Tips * Origin Trials * Zxcvbn Data Dictionaries
18d4691
to
e8671fe
Compare
std::vector<uint8_t> hash; | ||
installer_policy_->GetHash(&hash); | ||
const std::string id = update_client::GetCrxIdFromPublicKeyHash(hash); | ||
if (base::Contains(blacklisted_components, id.c_str())) { |
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.
Just needs #include "base/containers/contains.h" now.
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.
You mean #include "base/stl_util.h"
right?
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.
(Did that in 78db7e9.)
chromium_src/components/component_updater/component_installer.cc
Outdated
Show resolved
Hide resolved
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.
LGTM
Nice work, @mherrmann 😄 The only feedback I'd have would be to squash commits into logical units (ex: squash the lint fix/missing include/etc with the actual fix associated) edit: set missing milestone 😄 |
Thank you Brian! I was already working on this but @mihaiplesa beat me to the merge ;-) |
Resolves brave/brave-browser#8709
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed).Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on.
Test Plan:
Open
brave://components
on Windows, Mac, Linux and Android and check that none of the components described in brave/brave-browser#8709 (comment) are visible. The only exception is CRLSet on Android which @pj said should actually be there.