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:
Jeremy Rose 2020-06-09 11:29:29 -07:00 committed by GitHub
parent b2ef299efc
commit d08cfce6cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 16 deletions

View file

@ -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()