chore: use more inclusive language in a few places (#24023)
* chore: use more inclusive language in lint script * whitelist -> allowed_extension_ids in plugin_utils * some other places
This commit is contained in:
parent
b2ef299efc
commit
d08cfce6cb
4 changed files with 17 additions and 16 deletions
|
@ -36,10 +36,11 @@ PluginUtils::GetMimeTypeToExtensionIdMap(
|
|||
content::BrowserContext* browser_context) {
|
||||
base::flat_map<std::string, std::string> mime_type_to_extension_id_map;
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
std::vector<std::string> whitelist = MimeTypesHandler::GetMIMETypeWhitelist();
|
||||
std::vector<std::string> allowed_extension_ids =
|
||||
MimeTypesHandler::GetMIMETypeWhitelist();
|
||||
// Go through the white-listed extensions and try to use them to intercept
|
||||
// the URL request.
|
||||
for (const std::string& extension_id : whitelist) {
|
||||
for (const std::string& extension_id : allowed_extension_ids) {
|
||||
const extensions::Extension* extension =
|
||||
extensions::ExtensionRegistry::Get(browser_context)
|
||||
->enabled_extensions()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue