Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix layering violations in component updater and add missing dep #3211
+218
−404
Conversation
| #include "brave/grit/brave_generated_resources.h" | ||
| #include "ui/base/l10n/l10n_util.h" | ||
|
|
||
| base::string16 BravePrompt::GetDialogTitle() const { | ||
| if (!extensions::BraveExtensionProvider::IsVetted(extension())) { | ||
| if (g_brave_browser_process->extension_whitelist_service()->IsVetted( |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
LGTM after fixing the missing |
| @@ -21,8 +21,7 @@ class BraveExtensionProvider : public ManagementPolicy::Provider { | |||
| base::string16* error) const override; | |||
| bool MustRemainInstalled(const Extension* extension, | |||
| base::string16* error) const override; | |||
| static bool IsVetted(const extensions::Extension* extension); | |||
| static bool IsVetted(const std::string id); | |||
|
|
|||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -38,6 +43,23 @@ bool ExtensionWhitelistService::IsBlacklisted( | |||
| return extension_whitelist_client_->isBlacklisted(extension_id.c_str()); | |||
| } | |||
|
|
|||
| bool ExtensionWhitelistService::IsVetted(const Extension* extension) const { | |||
| // This is a hardcoded list of vetted extensions, mostly | |||
This comment has been minimized.
This comment has been minimized.
|
++ |
|
++ |
bridiver
added a commit
that referenced
this pull request
Aug 28, 2019
fix layering violations in component updater and add missing dep
bridiver
added a commit
that referenced
this pull request
Aug 29, 2019
fix layering violations in component updater and add missing dep
bridiver
added a commit
that referenced
this pull request
Aug 29, 2019
fix layering violations in component updater and add missing dep
Merged
bridiver
added a commit
that referenced
this pull request
Aug 29, 2019
fix layering violations in component updater and add missing dep
|
Updated to be 0.71.x milestone, which is where this landed. Viewable in commit log here: Will be uplifting to 0.70.x |
bsclifton
added a commit
that referenced
this pull request
Sep 12, 2019
fix layering violations in component updater and add missing dep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
bridiver commentedAug 20, 2019
•
edited
Submitter Checklist:
npm run lint)git rebase master(if needed).git rebase -ito squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.