Commit 8df91042 authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS IME] Rename whitelist to allowlist

This removes oppressive language from //chromeos/services/ime.

Change-Id: Idc403374dd3c489db2ed6cf5295e63e5c39308e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2387303Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Reviewed-by: default avatarLeo Zhang <googleo@chromium.org>
Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Leo Zhang <googleo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803708}
parent 201e028b
...@@ -70,7 +70,7 @@ void ImeService::SimpleDownloadFinished(SimpleDownloadCallback callback, ...@@ -70,7 +70,7 @@ void ImeService::SimpleDownloadFinished(SimpleDownloadCallback callback,
if (file.empty()) { if (file.empty()) {
callback(SIMPLE_DOWNLOAD_ERROR_FAILED, ""); callback(SIMPLE_DOWNLOAD_ERROR_FAILED, "");
} else { } else {
// Convert downloaded file path to an whitelisted path. // Convert downloaded file path to an allowlisted path.
base::FilePath target(kUserInputMethodsDirPath); base::FilePath target(kUserInputMethodsDirPath);
target = target.Append(kLanguageDataDirName).Append(file.BaseName()); target = target.Append(kLanguageDataDirName).Append(file.BaseName());
callback(SIMPLE_DOWNLOAD_ERROR_OK, target.MaybeAsASCII().c_str()); callback(SIMPLE_DOWNLOAD_ERROR_OK, target.MaybeAsASCII().c_str());
......
...@@ -104,7 +104,7 @@ interface InputChannel { ...@@ -104,7 +104,7 @@ interface InputChannel {
// Implemented in the browser process, used to perform network requests or // Implemented in the browser process, used to perform network requests or
// access privileged resources on behalf of the core IME service in ChromeOS. // access privileged resources on behalf of the core IME service in ChromeOS.
interface PlatformAccessProvider { interface PlatformAccessProvider {
// Download language module from a whitelisted url to a given path. // Download language module from a allowlisted url to a given path.
// Provider will validate the url and return an empty file path if it's // Provider will validate the url and return an empty file path if it's
// invalid or downloading fails. // invalid or downloading fails.
DownloadImeFileTo(url.mojom.Url url, DownloadImeFileTo(url.mojom.Url url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment