Commit 9dd4a186 authored by Livvie Lin's avatar Livvie Lin Committed by Commit Bot

Exclude Android and iOS from file scheme elision

Android and iOS don't have the File security chip, and therefore still need to show
the file scheme. (Follow-up from https://chromium-review.googlesource.com/c/chromium/src/+/1274985.)

Bug: 818528
Change-Id: Ib42601f637a513d21c965bcbd48f8c66fcc5cc99
Reviewed-on: https://chromium-review.googlesource.com/c/1308077
Commit-Queue: Livvie Lin <livvielin@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604037}
parent 59bb8ba0
......@@ -36,8 +36,16 @@ namespace omnibox {
// Feature used to hide the scheme from steady state URLs displayed in the
// toolbar. It is restored during editing.
const base::Feature kHideFileUrlScheme{"OmniboxUIExperimentHideFileUrlScheme",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kHideFileUrlScheme {
"OmniboxUIExperimentHideFileUrlScheme",
// Android and iOS don't have the File security chip, and therefore still
// need to show the file scheme.
#if defined(OS_ANDROID) || defined(OS_IOS)
base::FEATURE_DISABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
#endif
};
// Feature used to hide the scheme from steady state URLs displayed in the
// toolbar. It is restored during editing.
......
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