Add experimental flag to round the corners of the omnibox dse logo
This color samples the edges of the dse logo and creates a background
that the logo is then laid on top of.
Bug: 993416
Change-Id: I64ccd7358165334914eff54563f71f141dd4d4db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1737331
Commit-Queue: Brandon Wylie <[email protected]>
Reviewed-by: Theresa <[email protected]>
Reviewed-by: Ender <[email protected]>
Cr-Commit-Position: refs/heads/master@{#686672}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 91df95f2..4176bea 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1209,6 +1209,18 @@
""},
};
+#if defined(OS_ANDROID)
+const FeatureEntry::FeatureParam
+ kOmniboxSearchEngineLogoRoundedEdgesVariationConstant[] = {
+ {"rounded_edges", "true"}};
+const FeatureEntry::FeatureVariation
+ kOmniboxSearchEngineLogoFeatureVariations[] = {
+ {"(rounded edges)",
+ kOmniboxSearchEngineLogoRoundedEdgesVariationConstant,
+ base::size(kOmniboxSearchEngineLogoRoundedEdgesVariationConstant),
+ nullptr}};
+#endif // OS_ANDROID
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name.
@@ -2640,7 +2652,9 @@
{"omnibox-search-engine-logo",
flag_descriptions::kOmniboxSearchEngineLogoName,
flag_descriptions::kOmniboxSearchEngineLogoDescription, kOsAndroid,
- FEATURE_VALUE_TYPE(omnibox::kOmniboxSearchEngineLogo)},
+ FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxSearchEngineLogo,
+ kOmniboxSearchEngineLogoFeatureVariations,
+ "OmniboxSearchEngineLogo")},
#endif // defined(OS_ANDROID)
{"omnibox-rich-entity-suggestions",